mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
swarm/network: increase context timeout for TestFileRetrieval
The following test failed with `-race` flag on Travis. As `-race` might
increase the execution time by 2-20x.
--- FAIL: TestFileRetrieval (62.45s)
snapshot_retrieval_test.go:61: context deadline exceeded
FAIL github.com/ethereum/go-ethereum/swarm/network/stream 240.794s
This commit is contained in:
parent
baff204842
commit
64372e0539
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ func runFileRetrievalTest(nodeCount int) error {
|
|||
return err
|
||||
}
|
||||
|
||||
ctx, cancelSimRun := context.WithTimeout(context.Background(), 1*time.Minute)
|
||||
ctx, cancelSimRun := context.WithTimeout(context.Background(), 3*time.Minute)
|
||||
defer cancelSimRun()
|
||||
|
||||
result := sim.Run(ctx, func(ctx context.Context, sim *simulation.Simulation) error {
|
||||
|
|
|
|||
Loading…
Reference in a new issue