diff options
Diffstat (limited to 'swarm/storage')
-rw-r--r-- | swarm/storage/common_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/swarm/storage/common_test.go b/swarm/storage/common_test.go index 8ad95bfbc..23d43becc 100644 --- a/swarm/storage/common_test.go +++ b/swarm/storage/common_test.go @@ -142,10 +142,11 @@ func mget(store ChunkStore, hs []Address, f func(h Address, chunk Chunk) error) close(errc) }() var err error + timeout := 10 * time.Second select { case err = <-errc: - case <-time.NewTimer(5 * time.Second).C: - err = fmt.Errorf("timed out after 5 seconds") + case <-time.NewTimer(timeout).C: + err = fmt.Errorf("timed out after %v", timeout) } return err } |