mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/storage: increase mget timeout in common_test.go
TestDbStoreCorrect_1k sometimes timed out with -race on Travis.
--- FAIL: TestDbStoreCorrect_1k (24.63s)
common_test.go:194: testStore failed: timed out after 10s
This commit is contained in:
parent
f1537b774c
commit
bc9f5edcb8
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ func mget(store ChunkStore, hs []Address, f func(h Address, chunk Chunk) error)
|
||||||
close(errc)
|
close(errc)
|
||||||
}()
|
}()
|
||||||
var err error
|
var err error
|
||||||
timeout := 10 * time.Second
|
timeout := 20 * time.Second
|
||||||
select {
|
select {
|
||||||
case err = <-errc:
|
case err = <-errc:
|
||||||
case <-time.NewTimer(timeout).C:
|
case <-time.NewTimer(timeout).C:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue