Skip to content

Commit

Permalink
swarm/storage: Increase timeouts in test (#306)
Browse files Browse the repository at this point in the history
netstore_test seems to be flaky on travis, probably the timeouts are too short
  • Loading branch information
gbalint authored Mar 6, 2018
1 parent 746d1d6 commit 40d4c4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swarm/storage/netstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}()

Expand All @@ -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
Expand Down

0 comments on commit 40d4c4e

Please sign in to comment.