From 395400d1919e3a855f4638a840954b321501fc61 Mon Sep 17 00:00:00 2001 From: Balint Gabor Date: Tue, 6 Mar 2018 12:27:08 +0100 Subject: [PATCH] swarm/storage: Increase timeouts in test netstore_test seems to be flaky on travis, probably the timeouts are too short --- swarm/storage/netstore_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swarm/storage/netstore_test.go b/swarm/storage/netstore_test.go index ac43618e3e..ff2ee96958 100644 --- a/swarm/storage/netstore_test.go +++ b/swarm/storage/netstore_test.go @@ -59,7 +59,7 @@ func (m *mockRetrieve) retrieve(chunk *Chunk) error { if m.requests[hkey] == 3 { *chunk = *newDummyChunk(chunk.Key) go func() { - time.Sleep(50 * time.Millisecond) + time.Sleep(100 * time.Millisecond) close(chunk.ReqC) }() @@ -70,7 +70,7 @@ func (m *mockRetrieve) retrieve(chunk *Chunk) error { } func TestNetstoreFailedRequest(t *testing.T) { - searchTimeout = 100 * time.Millisecond + searchTimeout = 300 * time.Millisecond // setup addr := network.RandomAddr() // tested peers peer address