lib/model: Don't use LocalDeviceID as normal id in tests (#5512)
This commit is contained in:
@@ -337,7 +337,7 @@ func setupKnownFiles(t *testing.T, data []byte) []protocol.FileInfo {
|
||||
}
|
||||
|
||||
func setupROFolder() *Model {
|
||||
fcfg := config.NewFolderConfiguration(protocol.LocalDeviceID, "ro", "receive only test", fs.FilesystemTypeBasic, "_recvonly")
|
||||
fcfg := config.NewFolderConfiguration(myID, "ro", "receive only test", fs.FilesystemTypeBasic, "_recvonly")
|
||||
fcfg.Type = config.FolderTypeReceiveOnly
|
||||
fcfg.Devices = []config.FolderDeviceConfiguration{{DeviceID: device1}}
|
||||
fcfg.FSWatcherEnabled = false
|
||||
@@ -349,7 +349,7 @@ func setupROFolder() *Model {
|
||||
wrp := config.Wrap("/dev/null", cfg)
|
||||
|
||||
db := db.OpenMemory()
|
||||
m := NewModel(wrp, protocol.LocalDeviceID, "syncthing", "dev", db, nil)
|
||||
m := NewModel(wrp, myID, "syncthing", "dev", db, nil)
|
||||
|
||||
m.ServeBackground()
|
||||
m.AddFolder(fcfg)
|
||||
|
||||
Reference in New Issue
Block a user