From dc758f616bff8a0a18152c2e8f427e46fbe184ec Mon Sep 17 00:00:00 2001 From: niftynei Date: Mon, 26 Apr 2021 14:59:42 -0500 Subject: [PATCH] tests: mark as v1 or v2 openchannel required --- tests/test_closing.py | 4 ++-- tests/test_connection.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/test_closing.py b/tests/test_closing.py index d2d823721..cc34894bc 100644 --- a/tests/test_closing.py +++ b/tests/test_closing.py @@ -2,7 +2,7 @@ from fixtures import * # noqa: F401,F403 from flaky import flaky from pyln.client import RpcError, Millisatoshi from shutil import copyfile -from pyln.testing.utils import SLOW_MACHINE, EXPERIMENTAL_DUAL_FUND +from pyln.testing.utils import SLOW_MACHINE from utils import ( only_one, sync_blockheight, wait_for, TIMEOUT, account_balance, first_channel_id, basic_fee, TEST_NETWORK, @@ -2702,7 +2702,7 @@ Try a range of future segwit versions as shutdown scripts. We create many nodes l1.rpc.fundchannel(l2.info['id'], 10**6) -@unittest.skipIf(EXPERIMENTAL_DUAL_FUND, "Uses fundchannel_start") +@pytest.mark.openchannel('v1') def test_shutdown_alternate_txid(node_factory, bitcoind): l1, l2 = node_factory.line_graph(2, fundchannel=False, opts={'experimental-shutdown-wrong-funding': None, diff --git a/tests/test_connection.py b/tests/test_connection.py index aa2fa477a..da6a5db81 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -1060,7 +1060,7 @@ def test_funding_by_utxos(node_factory, bitcoind): @pytest.mark.developer("needs dev_forget_channel") -@unittest.skipIf(EXPERIMENTAL_DUAL_FUND, "Uses fundchannel_start") +@pytest.mark.openchannel('v1') def test_funding_external_wallet_corners(node_factory, bitcoind): l1 = node_factory.get_node(may_reconnect=True) l2 = node_factory.get_node(may_reconnect=True) @@ -1176,7 +1176,7 @@ def test_funding_external_wallet_corners(node_factory, bitcoind): @unittest.skipIf(SLOW_MACHINE and not VALGRIND, "Way too taxing on CI machines") -@unittest.skipIf(EXPERIMENTAL_DUAL_FUND, "requires fundchannel_start") +@pytest.mark.openchannel('v1') def test_funding_cancel_race(node_factory, bitcoind, executor): l1 = node_factory.get_node() @@ -1342,7 +1342,7 @@ def test_funding_close_upfront(node_factory, bitcoind): @unittest.skipIf(TEST_NETWORK != 'regtest', "External wallet support doesn't work with elements yet.") -@unittest.skipIf(EXPERIMENTAL_DUAL_FUND, "v2 doesn't work with fundchannel_start") +@pytest.mark.openchannel('v1') def test_funding_external_wallet(node_factory, bitcoind): l1, l2, l3 = node_factory.get_nodes(3, opts=[{'funding-confirms': 2}, {'funding-confirms': 2}, {}]) @@ -3159,7 +3159,7 @@ def test_htlc_retransmit_order(node_factory, executor): @unittest.skipIf(True, "Currently failing, see tracking issue #4265") -@unittest.skipIf(EXPERIMENTAL_DUAL_FUND, "fundchannel_start not available") +@pytest.mark.openchannel('v1') def test_fundchannel_start_alternate(node_factory, executor): ''' Test to see what happens if two nodes start channeling to each other alternately. @@ -3176,7 +3176,7 @@ def test_fundchannel_start_alternate(node_factory, executor): fut.result(10) -@unittest.skipIf(not EXPERIMENTAL_DUAL_FUND, "openchannel_init not available") +@pytest.mark.openchannel('v2') def test_openchannel_init_alternate(node_factory, executor): ''' Test to see what happens if two nodes start channeling to each other alternately.