Skip to content

Commit 0229bb7

Browse files
roshiik9ert
andauthored
Fix node2 RPC port & add missing elm mark (#2438)
- Set second test bitcoin node RPC port to 18545 (i/o 18544) to avoid P2P port conflict with first node - Add missing "elm" mark to test_node_controller.py::test_node_running_elements Signed-off-by: Simon Castano <[email protected]> Co-authored-by: k9ert <[email protected]>
1 parent 0ba9de2 commit 0229bb7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def bitcoin_regtest(request) -> BitcoindPlainController:
195195
def bitcoin_regtest2(request) -> BitcoindPlainController:
196196
"""If a test needs two nodes ..."""
197197
bitcoind_regtest = instantiate_bitcoind_controller(
198-
request, rpcport=18544, extra_args=None
198+
request, rpcport=18545, extra_args=None
199199
)
200200
try:
201201
assert bitcoind_regtest.get_rpc().test_connection()

tests/test_managers_wallet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def test_WalletManager_2_nodes(
162162
assert list(wm.rpcs.keys()) == [
163163
"regtest",
164164
] # wm.rpcs looks like this: {'regtest': <BitcoinRpc http://localhost:18543>, 'regtest2': <BitcoinRpc http://localhost:18544>}
165-
assert wm.rpc.port == 18544
165+
assert wm.rpc.port == 18545
166166
assert wm.wallets_names == ["wallet_for_test_with_two_nodes"]
167167
assert wm.chain == "regtest"
168168
assert wm.working_folder.endswith("test")

tests/test_node_controller.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def test_fetch_wallet_addresses_for_mining(caplog, wallets_filled_data_folder):
5757
assert "bcrt1q4h86vfanswhsle63hw2muv9h5a45cg2878uez5" in addresses
5858

5959

60+
@pytest.mark.elm
6061
@pytest.mark.slow
6162
def test_node_running_elements(caplog, request):
6263
# TODO: Refactor this to use conftest.instantiate_bitcoind_controller

0 commit comments

Comments
 (0)