From baff204842952b58c9984a1489d7ce3c04ff5034 Mon Sep 17 00:00:00 2001 From: Ferenc Szabo Date: Thu, 7 Feb 2019 13:44:06 +0100 Subject: [PATCH] swarm/network: decrease nodeCount for TestOverlaySim TestOverlaySim consistently failed with `-race` flag on Travis. My assumption was that we hit Travis' memory limitations. After decreasing the node count the test started to pass. Note: `-race` may increase memory usage by 5-10x === RUN TestOverlaySim panic: Could not startup node network for mocker goroutine 35 [running]: github.com/ethereum/go-ethereum/p2p/simulations.startStop(0xc0002a7000, 0xc0002a8b40, 0x10) /home/travis/gopath/src/github.com/ethereum/go-ethereum/p2p/simulations/mocker.go:66 +0x8a0 created by github.com/ethereum/go-ethereum/p2p/simulations.(*Server).StartMocker /home/travis/gopath/src/github.com/ethereum/go-ethereum/p2p/simulations/http.go:348 +0x260 FAIL github.com/ethereum/go-ethereum/swarm/network/simulations 2.788s --- swarm/network/simulations/overlay_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm/network/simulations/overlay_test.go b/swarm/network/simulations/overlay_test.go index e56b646503..636a527591 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.