From de54273f51af47fa7c7a66e5edc4c9c6fb03b178 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 25 Aug 2016 16:44:35 +0200 Subject: [PATCH] cmd/geth: fix port clash in genesis test --- cmd/geth/genesis_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/geth/genesis_test.go b/cmd/geth/genesis_test.go index 4f8b1642ef..6c3ca72984 100644 --- a/cmd/geth/genesis_test.go +++ b/cmd/geth/genesis_test.go @@ -100,7 +100,10 @@ func TestCustomGenesis(t *testing.T) { runGeth(t, "--datadir", datadir, "init", json).cmd.Wait() // Query the custom genesis block - geth := runGeth(t, "--datadir", datadir, "--maxpeers", "0", "--nodiscover", "--nat", "none", "--ipcdisable", "--exec", tt.query, "console") + geth := runGeth(t, + "--datadir", datadir, "--maxpeers", "0", "--port", "0", + "--nodiscover", "--nat", "none", "--ipcdisable", + "--exec", tt.query, "console") geth.expectRegexp(tt.result) geth.expectExit() }