lib/model: Introduce setupModel test utility (#5524)
This commit is contained in:
committed by
Audrius Butkevicius
parent
dc929946fe
commit
d85ef949be
@@ -740,11 +740,7 @@ func setupModelWithConnection() (*Model, *fakeConnection, string, *config.Wrappe
|
||||
}
|
||||
|
||||
func setupModelWithConnectionFromWrapper(w *config.Wrapper) (*Model, *fakeConnection) {
|
||||
db := db.OpenMemory()
|
||||
m := NewModel(w, myID, "syncthing", "dev", db, nil)
|
||||
m.AddFolder(w.FolderList()[0])
|
||||
m.ServeBackground()
|
||||
m.StartFolder("default")
|
||||
m := setupModel(w)
|
||||
|
||||
fc := addFakeConn(m, device1)
|
||||
fc.folder = "default"
|
||||
|
||||
Reference in New Issue
Block a user