lib/model: Unflake TestFolderRestartZombies (fixes #5244)
This commit is contained in:
parent
f528923d1e
commit
f12ca95af2
|
@ -3899,6 +3899,8 @@ func TestFolderRestartZombies(t *testing.T) {
|
||||||
// Wait for the above to complete and check how many folders we have
|
// Wait for the above to complete and check how many folders we have
|
||||||
// running now. It should not have increased.
|
// running now. It should not have increased.
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
// Make sure the folder is up and running, because we want to count it.
|
||||||
|
m.ScanFolder("default")
|
||||||
if r := atomic.LoadInt32(&m.foldersRunning); r != 1 {
|
if r := atomic.LoadInt32(&m.foldersRunning); r != 1 {
|
||||||
t.Error("Expected one running folder, not", r)
|
t.Error("Expected one running folder, not", r)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue