diff options
author | Ferenc Szabo <frncmx@gmail.com> | 2019-02-09 00:07:11 +0800 |
---|---|---|
committer | Rafael Matias <rafael@skyle.net> | 2019-02-19 20:11:51 +0800 |
commit | dcff622d43c6b7e41153d3f082e84a0718cb81c7 (patch) | |
tree | ef229ab35c7423d1e7f52fe644b57218abbc8d32 /swarm/network/networkid_test.go | |
parent | a3db00f2700a305279efa34420cbb90e7fe279fc (diff) | |
download | dexon-dcff622d43c6b7e41153d3f082e84a0718cb81c7.tar dexon-dcff622d43c6b7e41153d3f082e84a0718cb81c7.tar.gz dexon-dcff622d43c6b7e41153d3f082e84a0718cb81c7.tar.bz2 dexon-dcff622d43c6b7e41153d3f082e84a0718cb81c7.tar.lz dexon-dcff622d43c6b7e41153d3f082e84a0718cb81c7.tar.xz dexon-dcff622d43c6b7e41153d3f082e84a0718cb81c7.tar.zst dexon-dcff622d43c6b7e41153d3f082e84a0718cb81c7.zip |
swarm: CI race detector test adjustments (#19017)
(cherry picked from commit 27e3f968194e2723279b60f71c79d4da9fc7577f)
Diffstat (limited to 'swarm/network/networkid_test.go')
-rw-r--r-- | swarm/network/networkid_test.go | 4 |
1 files changed, 2 insertions, 2 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 |