lib/model: Moar sleep

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3807
This commit is contained in:
Audrius Butkevicius 2016-12-16 12:05:27 +00:00
parent abb8a1914a
commit 542b76f687
1 changed files with 4 additions and 4 deletions

View File

@ -329,8 +329,8 @@ func TestWeakHash(t *testing.T) {
select {
case pull := <-pullChan:
pulls = append(pulls, pull)
case <-time.After(time.Second):
t.Error("timed out")
case <-time.After(10 * time.Second):
t.Errorf("timed out, got %d pulls expected %d", len(pulls), expectPulls)
}
}
finish := <-finisherChan
@ -357,8 +357,8 @@ func TestWeakHash(t *testing.T) {
select {
case pull := <-pullChan:
pulls = append(pulls, pull)
case <-time.After(time.Second):
t.Error("timed out")
case <-time.After(10 * time.Second):
t.Errorf("timed out, got %d pulls expected %d", len(pulls), expectPulls)
}
}