From 0014ffdef56ebc1a800b8fc98af80dc984ce1fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Tue, 24 Oct 2023 16:52:06 +0200 Subject: [PATCH] test: integration tests listen on localhost (#596) --- tests/integration/multinodes.nim | 1 + tests/integration/testblockexpiration.nim | 1 + tests/integration/testproofs.nim | 1 + tests/integration/twonodes.nim | 2 ++ 4 files changed, 5 insertions(+) diff --git a/tests/integration/multinodes.nim b/tests/integration/multinodes.nim index c256cec5..d26f99e1 100644 --- a/tests/integration/multinodes.nim +++ b/tests/integration/multinodes.nim @@ -86,6 +86,7 @@ template multinodesuite*(name: string, "--api-port=" & $(8080 + index), "--data-dir=" & datadir, "--nat=127.0.0.1", + "--listen-addrs=/ip4/127.0.0.1/tcp/0", "--disc-ip=127.0.0.1", "--disc-port=" & $(8090 + index), "--eth-account=" & $accounts[index]] diff --git a/tests/integration/testblockexpiration.nim b/tests/integration/testblockexpiration.nim index b0efba63..2cff4fed 100644 --- a/tests/integration/testblockexpiration.nim +++ b/tests/integration/testblockexpiration.nim @@ -26,6 +26,7 @@ ethersuite "Node block expiration tests": "--api-port=8080", "--data-dir=" & dataDir, "--nat=127.0.0.1", + "--listen-addrs=/ip4/127.0.0.1/tcp/0", "--disc-ip=127.0.0.1", "--disc-port=8090", "--block-ttl=" & $blockTtlSeconds, diff --git a/tests/integration/testproofs.nim b/tests/integration/testproofs.nim index 41190cc5..c5f2ff05 100644 --- a/tests/integration/testproofs.nim +++ b/tests/integration/testproofs.nim @@ -63,6 +63,7 @@ twonodessuite "Proving integration test", debug1=false, debug2=false: "--data-dir=" & validatorDir, "--api-port=8089", "--disc-port=8099", + "--listen-addrs=/ip4/127.0.0.1/tcp/0", "--validator", "--eth-account=" & $accounts[2] ], debug = false diff --git a/tests/integration/twonodes.nim b/tests/integration/twonodes.nim index 04db4a85..fafaf567 100644 --- a/tests/integration/twonodes.nim +++ b/tests/integration/twonodes.nim @@ -38,6 +38,7 @@ template twonodessuite*(name: string, debug1, debug2: string, body) = "--nat=127.0.0.1", "--disc-ip=127.0.0.1", "--disc-port=8090", + "--listen-addrs=/ip4/127.0.0.1/tcp/0", "--persistence", "--eth-account=" & $account1 ] @@ -56,6 +57,7 @@ template twonodessuite*(name: string, debug1, debug2: string, body) = "--nat=127.0.0.1", "--disc-ip=127.0.0.1", "--disc-port=8091", + "--listen-addrs=/ip4/127.0.0.1/tcp/0", "--bootstrap-node=" & bootstrap, "--persistence", "--eth-account=" & $account2