Skip to content

Commit 1cde0c0

Browse files
committed
tests: skip splicing / dual-funding tests when VLS_SKIP_SPLICE_TESTS
1 parent 5f4a2cf commit 1cde0c0

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

tests/test_connection.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ def test_disconnect_fundee(node_factory):
584584
assert len(l2.rpc.listpeers()) == 1
585585

586586

587+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
587588
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
588589
@pytest.mark.openchannel('v2')
589590
def test_disconnect_fundee_v2(node_factory):
@@ -660,6 +661,7 @@ def test_disconnect_half_signed_v2(node_factory):
660661
assert len(l1.rpc.listpeerchannels(l2.info['id'])['channels']) == 1
661662

662663

664+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
663665
@pytest.mark.openchannel('v1')
664666
@pytest.mark.openchannel('v2')
665667
def test_reconnect_signed(node_factory):
@@ -1839,6 +1841,7 @@ def test_multifunding_v1_v2_mixed(node_factory, bitcoind):
18391841
l1.rpc.pay(inv)
18401842

18411843

1844+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
18421845
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
18431846
@pytest.mark.openchannel('v2')
18441847
def test_multifunding_v2_exclusive(node_factory, bitcoind):

tests/test_opening.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def test_v2_open_sigs_reconnect_2(node_factory, bitcoind):
175175
l2.daemon.wait_for_log(r'to CHANNELD_NORMAL')
176176

177177

178+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
178179
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
179180
@pytest.mark.openchannel('v2')
180181
def test_v2_open_sigs_reconnect_1(node_factory, bitcoind):
@@ -337,6 +338,7 @@ def test_v2_open_sigs_restart_while_dead(node_factory, bitcoind):
337338
l1.daemon.wait_for_log(r'to CHANNELD_NORMAL')
338339

339340

341+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
340342
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
341343
@pytest.mark.openchannel('v2')
342344
def test_v2_rbf_single(node_factory, bitcoind, chainparams):
@@ -519,6 +521,7 @@ def test_v2_rbf_abort_retry(node_factory, bitcoind, chainparams):
519521
assert not l2.daemon.is_in_log('WIRE_CHANNEL_REESTABLISH')
520522

521523

524+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
522525
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
523526
@pytest.mark.openchannel('v2')
524527
def test_v2_rbf_abort_channel_opens(node_factory, bitcoind, chainparams):
@@ -675,6 +678,7 @@ def test_v2_rbf_liquidity_ad(node_factory, bitcoind, chainparams):
675678
l1.daemon.wait_for_log('State changed from CLOSINGD_SIGEXCHANGE to CLOSINGD_COMPLETE')
676679

677680

681+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
678682
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
679683
@pytest.mark.openchannel('v2')
680684
def test_v2_rbf_multi(node_factory, bitcoind, chainparams):
@@ -865,6 +869,7 @@ def test_rbf_reconnect_ack(node_factory, bitcoind, chainparams):
865869
l1.rpc.openchannel_bump(chan_id, chan_amount, initpsbt['psbt'])
866870

867871

872+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
868873
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
869874
@pytest.mark.openchannel('v2')
870875
def test_rbf_reconnect_tx_construct(node_factory, bitcoind, chainparams):
@@ -986,6 +991,7 @@ def test_rbf_reconnect_tx_construct(node_factory, bitcoind, chainparams):
986991
l2.daemon.wait_for_log(r'to CHANNELD_NORMAL')
987992

988993

994+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
989995
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
990996
@pytest.mark.openchannel('v2')
991997
def test_rbf_reconnect_tx_sigs(node_factory, bitcoind, chainparams):
@@ -1067,6 +1073,7 @@ def test_rbf_reconnect_tx_sigs(node_factory, bitcoind, chainparams):
10671073
assert l1_funding_txid == l2_funding_txid
10681074

10691075

1076+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
10701077
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
10711078
@pytest.mark.openchannel('v2')
10721079
def test_rbf_to_chain_before_commit(node_factory, bitcoind, chainparams):
@@ -1168,6 +1175,7 @@ def test_rbf_no_overlap(node_factory, bitcoind, chainparams):
11681175
l1.rpc.openchannel_update(chan_id, bump['psbt'])
11691176

11701177

1178+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
11711179
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
11721180
@pytest.mark.openchannel('v2')
11731181
def test_rbf_fails_to_broadcast(node_factory, bitcoind, chainparams):
@@ -1249,6 +1257,7 @@ def run_retry():
12491257
assert last_txs['tx']
12501258

12511259

1260+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
12521261
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
12531262
@pytest.mark.openchannel('v2')
12541263
def test_rbf_broadcast_close_inflights(node_factory, bitcoind, chainparams):
@@ -1324,6 +1333,7 @@ def run_retry():
13241333
assert inflights[1]['scratch_txid'] not in bitcoind.rpc.getrawmempool()
13251334

13261335

1336+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
13271337
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
13281338
@pytest.mark.openchannel('v2')
13291339
def test_rbf_non_last_mined(node_factory, bitcoind, chainparams):
@@ -1424,6 +1434,7 @@ def censoring_sendrawtx(r):
14241434
l1.daemon.wait_for_log(r'to ONCHAIN')
14251435

14261436

1437+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
14271438
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
14281439
@pytest.mark.openchannel('v2')
14291440
def test_funder_options(node_factory, bitcoind):
@@ -2338,6 +2349,7 @@ def _no_utxo_response(r):
23382349
wait_for(lambda: l2.rpc.listpeerchannels()['channels'] == [])
23392350

23402351

2352+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
23412353
@pytest.mark.openchannel('v2')
23422354
def test_openchannel_no_unconfirmed_inputs_accepter(node_factory, bitcoind):
23432355
""" If the accepter flags 'require-confirmed-inputs' for an open,

tests/test_splicing.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
)
1010

1111

12+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
1213
@pytest.mark.openchannel('v1')
1314
@pytest.mark.openchannel('v2')
1415
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
@@ -48,6 +49,7 @@ def test_splice(node_factory, bitcoind):
4849
assert l1.db_query("SELECT count(*) as c FROM channeltxs;")[0]['c'] == 0
4950

5051

52+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
5153
@pytest.mark.openchannel('v1')
5254
@pytest.mark.openchannel('v2')
5355
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
@@ -106,6 +108,7 @@ def test_splice_gossip(node_factory, bitcoind):
106108
assert not l2.daemon.is_in_log("invalid local_channel_announcement")
107109

108110

111+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
109112
@pytest.mark.openchannel('v1')
110113
@pytest.mark.openchannel('v2')
111114
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
@@ -141,6 +144,7 @@ def test_splice_listnodes(node_factory, bitcoind):
141144
assert len(l2.rpc.listnodes()['nodes']) == 2
142145

143146

147+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
144148
@pytest.mark.openchannel('v1')
145149
@pytest.mark.openchannel('v2')
146150
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
@@ -177,6 +181,7 @@ def test_splice_out(node_factory, bitcoind):
177181
assert l1.db_query("SELECT count(*) as c FROM channeltxs;")[0]['c'] == 0
178182

179183

184+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
180185
@pytest.mark.openchannel('v1')
181186
@pytest.mark.openchannel('v2')
182187
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
@@ -288,6 +293,7 @@ def test_commit_crash_splice(node_factory, bitcoind):
288293
assert l1.db_query("SELECT count(*) as c FROM channeltxs;")[0]['c'] == 0
289294

290295

296+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
291297
@pytest.mark.openchannel('v1')
292298
@pytest.mark.openchannel('v2')
293299
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')

tests/test_splicing_disconnect.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
)
99

1010

11+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
1112
@pytest.mark.openchannel('v1')
1213
@pytest.mark.openchannel('v2')
1314
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
@@ -63,6 +64,7 @@ def test_splice_disconnect_sig(node_factory, bitcoind):
6364
assert l1.db_query("SELECT count(*) as c FROM channeltxs;")[0]['c'] == 0
6465

6566

67+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_SKIP_SPLICE_TESTS') == '1', "test expected to fail before VLS dual-funding / splicing support")
6668
@pytest.mark.openchannel('v1')
6769
@pytest.mark.openchannel('v2')
6870
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')

0 commit comments

Comments
 (0)