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:
Ferenc Szabo 2019-02-07 14:14:43 +01:00
parent baff204842
commit 64372e0539

View file

@ -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 {