From 542b76f6873691b24bebb809b0c4776c761ff0ea Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Fri, 16 Dec 2016 12:05:27 +0000 Subject: [PATCH] lib/model: Moar sleep GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3807 --- lib/model/rwfolder_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/model/rwfolder_test.go b/lib/model/rwfolder_test.go index 50c58fed..708c5342 100644 --- a/lib/model/rwfolder_test.go +++ b/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) } }