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:
Felix Lange 2024-10-10 23:56:59 +02:00
parent 0173cbe212
commit 380ba6f785

View file

@ -40,7 +40,7 @@ func startSimulatedBeaconEthService(t *testing.T, genesis *core.Genesis, period
n, err := node.New(&node.Config{
P2P: p2p.Config{
ListenAddr: "127.0.0.1:8545",
ListenAddr: "127.0.0.1:0",
NoDiscovery: true,
MaxPeers: 0,
},