mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
swarm/storage: Increase timeouts in test
netstore_test seems to be flaky on travis, probably the timeouts are too short
This commit is contained in:
parent
746d1d6a54
commit
395400d191
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue