Don't expect ending slash on Windows

This commit is contained in:
Jakob Borg 2015-10-22 13:49:41 +02:00
parent d7a934cf0e
commit a32ac62208
1 changed files with 6 additions and 1 deletions

View File

@ -91,7 +91,7 @@ func TestDeviceConfig(t *testing.T) {
expectedFolders := []FolderConfiguration{
{
ID: "test",
RawPath: "testdata" + string(filepath.Separator),
RawPath: "testdata",
Devices: []FolderDeviceConfiguration{{DeviceID: device1}, {DeviceID: device4}},
ReadOnly: true,
RescanIntervalS: 600,
@ -103,6 +103,11 @@ func TestDeviceConfig(t *testing.T) {
MaxConflicts: -1,
},
}
if runtime.GOOS != "windows" {
expectedFolders[0].RawPath += string(filepath.Separator)
}
expectedDevices := []DeviceConfiguration{
{
DeviceID: device1,