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
This commit is contained in:
Ferenc Szabo 2019-02-07 13:44:06 +01:00
parent ac41a75499
commit baff204842

View file

@ -32,7 +32,7 @@ import (
) )
var ( var (
nodeCount = 16 nodeCount = 10
) )
//This test is used to test the overlay simulation. //This test is used to test the overlay simulation.