From 380ba6f78594f3aea0662286c59acacd2d081e9e Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 10 Oct 2024 23:56:59 +0200 Subject: [PATCH] eth/catalyst: use random port in test This makes the tests work even if geth is already running on the host. --- eth/catalyst/simulated_beacon_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/catalyst/simulated_beacon_test.go b/eth/catalyst/simulated_beacon_test.go index 711e8f1d60..7db1769234 100644 --- a/eth/catalyst/simulated_beacon_test.go +++ b/eth/catalyst/simulated_beacon_test.go @@ -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, },