Browse Source

lib/model: Moar sleep

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3807
Audrius Butkevicius 8 years ago
parent
commit
542b76f687
1 changed files with 4 additions and 4 deletions
  1. 4 4
      lib/model/rwfolder_test.go

+ 4 - 4
lib/model/rwfolder_test.go

@@ -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)
 		}
 	}