Просмотр исходного кода

lib/model: Unflake TestFolderRestartZombies (fixes #5244)

Jakob Borg 7 лет назад
Родитель
Сommit
f12ca95af2
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      lib/model/model_test.go

+ 2 - 0
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)
 	}