mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
eth/catalyst: use random port in test
This makes the tests work even if geth is already running on the host.
This commit is contained in:
parent
0173cbe212
commit
380ba6f785
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ func startSimulatedBeaconEthService(t *testing.T, genesis *core.Genesis, period
|
||||||
|
|
||||||
n, err := node.New(&node.Config{
|
n, err := node.New(&node.Config{
|
||||||
P2P: p2p.Config{
|
P2P: p2p.Config{
|
||||||
ListenAddr: "127.0.0.1:8545",
|
ListenAddr: "127.0.0.1:0",
|
||||||
NoDiscovery: true,
|
NoDiscovery: true,
|
||||||
MaxPeers: 0,
|
MaxPeers: 0,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue