Don't expect ending slash on Windows
This commit is contained in:
parent
d7a934cf0e
commit
a32ac62208
@ -91,7 +91,7 @@ func TestDeviceConfig(t *testing.T) {
|
|||||||
expectedFolders := []FolderConfiguration{
|
expectedFolders := []FolderConfiguration{
|
||||||
{
|
{
|
||||||
ID: "test",
|
ID: "test",
|
||||||
RawPath: "testdata" + string(filepath.Separator),
|
RawPath: "testdata",
|
||||||
Devices: []FolderDeviceConfiguration{{DeviceID: device1}, {DeviceID: device4}},
|
Devices: []FolderDeviceConfiguration{{DeviceID: device1}, {DeviceID: device4}},
|
||||||
ReadOnly: true,
|
ReadOnly: true,
|
||||||
RescanIntervalS: 600,
|
RescanIntervalS: 600,
|
||||||
@ -103,6 +103,11 @@ func TestDeviceConfig(t *testing.T) {
|
|||||||
MaxConflicts: -1,
|
MaxConflicts: -1,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if runtime.GOOS != "windows" {
|
||||||
|
expectedFolders[0].RawPath += string(filepath.Separator)
|
||||||
|
}
|
||||||
|
|
||||||
expectedDevices := []DeviceConfiguration{
|
expectedDevices := []DeviceConfiguration{
|
||||||
{
|
{
|
||||||
DeviceID: device1,
|
DeviceID: device1,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user