From 64372e053939c4f798e1aa75afbc3048d63cc2c6 Mon Sep 17 00:00:00 2001 From: Ferenc Szabo Date: Thu, 7 Feb 2019 14:14:43 +0100 Subject: [PATCH] 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 --- swarm/network/stream/snapshot_retrieval_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm/network/stream/snapshot_retrieval_test.go b/swarm/network/stream/snapshot_retrieval_test.go index f097e4180a..0f20f1be06 100644 --- a/swarm/network/stream/snapshot_retrieval_test.go +++ b/swarm/network/stream/snapshot_retrieval_test.go @@ -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 {