Skip to content

Commit

Permalink
lib/model: Unflake TestFolderRestartZombies (fixes syncthing#5244)
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Oct 7, 2018
1 parent f528923 commit f12ca95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/model/model_test.go
Expand Up @@ -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)
}
Expand Down

0 comments on commit f12ca95

Please sign in to comment.