From f12ca95af20c351e909bf28e12464078f5344bb4 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sun, 7 Oct 2018 13:58:25 +0200 Subject: [PATCH] lib/model: Unflake TestFolderRestartZombies (fixes #5244) --- lib/model/model_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/model/model_test.go b/lib/model/model_test.go index 7bb78315a22..c102af0fb3f 100644 --- a/lib/model/model_test.go +++ b/lib/model/model_test.go @@ -3899,6 +3899,8 @@ func TestFolderRestartZombies(t *testing.T) { // Wait for the above to complete and check how many folders we have // running now. It should not have increased. 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 { t.Error("Expected one running folder, not", r) }