diff options
author | Ferenc Szabo <frncmx@gmail.com> | 2019-02-09 00:07:11 +0800 |
---|---|---|
committer | Anton Evangelatov <anton.evangelatov@gmail.com> | 2019-02-09 00:07:11 +0800 |
commit | 27e3f968194e2723279b60f71c79d4da9fc7577f (patch) | |
tree | a5419a987eff3e7955985906b276607b7307f02e /swarm/network | |
parent | cde02e017ef2fb254f9b91888f4a14645c24890a (diff) | |
download | go-tangerine-27e3f968194e2723279b60f71c79d4da9fc7577f.tar.gz go-tangerine-27e3f968194e2723279b60f71c79d4da9fc7577f.tar.zst go-tangerine-27e3f968194e2723279b60f71c79d4da9fc7577f.zip |
swarm: CI race detector test adjustments (#19017)
Diffstat (limited to 'swarm/network')
-rw-r--r-- | swarm/network/networkid_test.go | 4 | ||||
-rw-r--r-- | swarm/network/simulations/overlay_test.go | 2 | ||||
-rw-r--r-- | swarm/network/stream/snapshot_retrieval_test.go | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/swarm/network/networkid_test.go b/swarm/network/networkid_test.go index 8e68e5b52..9d47cf9f6 100644 --- a/swarm/network/networkid_test.go +++ b/swarm/network/networkid_test.go @@ -44,7 +44,7 @@ var ( const ( NumberOfNets = 4 - MaxTimeout = 6 + MaxTimeout = 15 * time.Second ) func init() { @@ -146,7 +146,7 @@ func setupNetwork(numnodes int) (net *simulations.Network, err error) { return nil, fmt.Errorf("create node %d rpc client fail: %v", i, err) } //now setup and start event watching in order to know when we can upload - ctx, watchCancel := context.WithTimeout(context.Background(), MaxTimeout*time.Second) + ctx, watchCancel := context.WithTimeout(context.Background(), MaxTimeout) defer watchCancel() watchSubscriptionEvents(ctx, nodes[i].ID(), client, errc, quitC) //on every iteration we connect to all previous ones diff --git a/swarm/network/simulations/overlay_test.go b/swarm/network/simulations/overlay_test.go index e56b64650..636a52759 100644 --- a/swarm/network/simulations/overlay_test.go +++ b/swarm/network/simulations/overlay_test.go @@ -32,7 +32,7 @@ import ( ) var ( - nodeCount = 16 + nodeCount = 10 ) //This test is used to test the overlay simulation. diff --git a/swarm/network/stream/snapshot_retrieval_test.go b/swarm/network/stream/snapshot_retrieval_test.go index f097e4180..0f20f1be0 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 { |