lib/model: Fix wrongly hardcoded arguments in test helper (#7749)

This commit is contained in:
Simon Frei
2021-06-05 17:01:23 +02:00
committed by GitHub
parent b1e0e7b923
commit 18592af993
3 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -194,7 +194,7 @@ func (m *testModel) testCurrentFolderFile(folder string, file string) (protocol.
}
func (m *testModel) testCompletion(device protocol.DeviceID, folder string) FolderCompletion {
comp, err := m.Completion(protocol.LocalDeviceID, "default")
comp, err := m.Completion(device, folder)
must(m.t, err)
return comp
}
@@ -276,7 +276,7 @@ func receiveOnlyChangedSize(t *testing.T, m Model, folder string) db.Counts {
return snap.ReceiveOnlyChangedSize()
}
func needSize(t *testing.T, m Model, folder string) db.Counts {
func needSizeLocal(t *testing.T, m Model, folder string) db.Counts {
t.Helper()
snap := dbSnapshot(t, m, folder)
defer snap.Release()