Skip to content

Commit 23c3774

Browse files
committed
tests: skip tests incompatible with VLS
1 parent 1e7d7f4 commit 23c3774

File tree

12 files changed

+87
-0
lines changed

12 files changed

+87
-0
lines changed

tests/test_bookkeeper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ def test_bookkeeping_rbf_withdraw(node_factory, bitcoind):
332332
assert len(fees) == 1
333333

334334

335+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "hsmd_sign_option_will_fund_offer not supported")
335336
@pytest.mark.openchannel('v2')
336337
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "turns off bookkeeper at start")
337338
@unittest.skipIf(TEST_NETWORK != 'regtest', "network fees hardcoded")
@@ -408,6 +409,7 @@ def _check_events(node, channel_id, exp_events):
408409

409410
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "turns off bookkeeper at start")
410411
@unittest.skipIf(TEST_NETWORK != 'regtest', "network fees hardcoded")
412+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "remote_hsmd doesn't allow push of non-trivial amount")
411413
@pytest.mark.openchannel('v1', 'Uses push-msat')
412414
def test_bookkeeping_missed_chans_pushed(node_factory, bitcoind):
413415
"""
@@ -599,6 +601,7 @@ def test_bookkeeping_onchaind_txs(node_factory, bitcoind):
599601
assert outs == only_one(wallet_bal['balances'])['balance_msat']
600602

601603

604+
#@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "invoice from offer: Invalid bech32: invalid checksum")
602605
def test_bookkeeping_descriptions(node_factory, bitcoind, chainparams):
603606
"""
604607
When an 'invoice' type event comes through, we look up the description details

tests/test_closing.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ def test_closing_negotiation_step_700sat(node_factory, bitcoind, chainparams):
482482
closing_negotiation_step(node_factory, bitcoind, chainparams, opts)
483483

484484

485+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "dev_sign_last_tx causes subsequent validate_holder_commitment_tx failure")
485486
@pytest.mark.parametrize("anchors", [False, True])
486487
def test_penalty_inhtlc(node_factory, bitcoind, executor, chainparams, anchors):
487488
"""Test penalty transaction with an incoming HTLC"""
@@ -614,6 +615,7 @@ def test_penalty_inhtlc(node_factory, bitcoind, executor, chainparams, anchors):
614615
check_utxos_channel(l2, [channel_id], expected_2, tags)
615616

616617

618+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "dev_sign_last_tx causes subsequent validate_holder_commitment_tx failure")
617619
@pytest.mark.parametrize("anchors", [False, True])
618620
def test_penalty_outhtlc(node_factory, bitcoind, executor, chainparams, anchors):
619621
"""Test penalty transaction with an outgoing HTLC"""
@@ -750,6 +752,7 @@ def test_penalty_outhtlc(node_factory, bitcoind, executor, chainparams, anchors)
750752

751753

752754
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
755+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "handle_sign_option_will_fund_offer unimplemented")
753756
@pytest.mark.openchannel('v2')
754757
@pytest.mark.slow_test
755758
def test_channel_lease_falls_behind(node_factory, bitcoind):
@@ -791,6 +794,7 @@ def test_channel_lease_falls_behind(node_factory, bitcoind):
791794

792795

793796
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
797+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "handle_sign_option_will_fund_offer unimplemented")
794798
@pytest.mark.openchannel('v2')
795799
@pytest.mark.slow_test
796800
def test_channel_lease_post_expiry(node_factory, bitcoind, chainparams):
@@ -892,6 +896,7 @@ def test_channel_lease_post_expiry(node_factory, bitcoind, chainparams):
892896

893897

894898
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
899+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "handle_sign_option_will_fund_offer unimplemented")
895900
@pytest.mark.openchannel('v2')
896901
@pytest.mark.slow_test
897902
def test_channel_lease_unilat_closes(node_factory, bitcoind):
@@ -1004,6 +1009,7 @@ def test_channel_lease_unilat_closes(node_factory, bitcoind):
10041009

10051010

10061011
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
1012+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "handle_sign_option_will_fund_offer unimplemented")
10071013
@pytest.mark.openchannel('v2')
10081014
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "Makes use of the sqlite3 db")
10091015
def test_channel_lease_lessor_cheat(node_factory, bitcoind, chainparams):
@@ -1080,6 +1086,7 @@ def test_channel_lease_lessor_cheat(node_factory, bitcoind, chainparams):
10801086

10811087

10821088
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
1089+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "handle_sign_option_will_fund_offer unimplemented")
10831090
@pytest.mark.openchannel('v2')
10841091
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "Makes use of the sqlite3 db")
10851092
def test_channel_lease_lessee_cheat(node_factory, bitcoind, chainparams):
@@ -1155,6 +1162,8 @@ def test_channel_lease_lessee_cheat(node_factory, bitcoind, chainparams):
11551162
'Unknown spend of OUR_UNILATERAL/DELAYED_OUTPUT_TO_US by'])
11561163

11571164

1165+
# VLS_PERMISSIVE generates invalid signature bassed on bad commitnum
1166+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "invalid next holder commitment number: 4 != 6")
11581167
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "Makes use of the sqlite3 db")
11591168
@pytest.mark.slow_test
11601169
@pytest.mark.parametrize("anchors", [False, True])
@@ -1339,6 +1348,8 @@ def test_penalty_htlc_tx_fulfill(node_factory, bitcoind, chainparams, anchors):
13391348
check_balance_snaps(l2, expected_bals_2)
13401349

13411350

1351+
# VLS_PERMISSIVE generates invalid signature bassed on bad commitnum
1352+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "invalid next holder commitment number: 4 != 6")
13421353
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "Makes use of the sqlite3 db")
13431354
@pytest.mark.slow_test
13441355
@pytest.mark.parametrize("anchors", [False, True])
@@ -1568,6 +1579,7 @@ def test_penalty_htlc_tx_timeout(node_factory, bitcoind, chainparams, anchors):
15681579
assert acc['resolved_at_block'] > 0
15691580

15701581

1582+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "exceeds max fee policy")
15711583
@pytest.mark.parametrize("anchors", [False, True])
15721584
def test_penalty_rbf_normal(node_factory, bitcoind, executor, chainparams, anchors):
15731585
'''
@@ -2859,6 +2871,7 @@ def route_to_l1(src):
28592871

28602872

28612873
@pytest.mark.slow_test
2874+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "frequently flakes")
28622875
def test_onchain_multihtlc_our_unilateral(node_factory, bitcoind):
28632876
"""Node pushes a channel onchain with multiple HTLCs with same payment_hash """
28642877
h, l1, l2, l3, l4, l5, l6, l7 = setup_multihtlc_test(node_factory, bitcoind)
@@ -2914,6 +2927,7 @@ def test_onchain_multihtlc_our_unilateral(node_factory, bitcoind):
29142927

29152928

29162929
@pytest.mark.slow_test
2930+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "frequently flakes")
29172931
def test_onchain_multihtlc_their_unilateral(node_factory, bitcoind):
29182932
"""Node pushes a channel onchain with multiple HTLCs with same payment_hash """
29192933
h, l1, l2, l3, l4, l5, l6, l7 = setup_multihtlc_test(node_factory, bitcoind)
@@ -3077,6 +3091,7 @@ def test_permfail_htlc_out(node_factory, bitcoind, executor):
30773091
wait_for(lambda: l2.rpc.listpeers()['peers'] == [])
30783092

30793093

3094+
#@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "policy: can't withdraw to non-wallet address") # FIXME - should work with auto-approve
30803095
def test_permfail(node_factory, bitcoind):
30813096
l1, l2 = node_factory.line_graph(2)
30823097

@@ -3176,6 +3191,7 @@ def test_shutdown(node_factory):
31763191
l1.rpc.stop()
31773192

31783193

3194+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "validate_setup_channel: holder_shutdown_script is not in wallet or allowlist")
31793195
def test_option_upfront_shutdown_script(node_factory, bitcoind, executor, chainparams):
31803196
l1 = node_factory.get_node(start=False, allow_warning=True)
31813197
# Insist on upfront script we're not going to match.

tests/test_connection.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,6 +1214,7 @@ def test_v2_open(node_factory, bitcoind, chainparams):
12141214
result = l1.rpc.waitsendpay(p['payment_hash'])
12151215
assert(result['status'] == 'complete')
12161216

1217+
12171218
# policy failed: policy-onchain-no-channel-push validate_onchain_tx: channel push not allowed: dual-funding not supported yet
12181219
@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")
12191220
@pytest.mark.openchannel('v1')
@@ -1643,6 +1644,7 @@ def test_funding_v2_cancel_race(node_factory, bitcoind, executor):
16431644
executor.map(lambda n: n.stop(), node_factory.nodes)
16441645

16451646

1647+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "validate_setup_channel: holder_shutdown_script is not in wallet or allowlist")
16461648
@pytest.mark.openchannel('v1')
16471649
@pytest.mark.openchannel('v2')
16481650
@unittest.skipIf(TEST_NETWORK != 'regtest', "External wallet support doesn't work with elements yet.")
@@ -1793,6 +1795,7 @@ def test_funding_external_wallet(node_factory, bitcoind):
17931795

17941796
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
17951797
@pytest.mark.openchannel('v1') # We manually turn on dual-funding for select nodes
1798+
#@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "commit c0cc285a causes: channel stub can only return point for commitment number zero")
17961799
def test_multifunding_v1_v2_mixed(node_factory, bitcoind):
17971800
'''
17981801
Simple test for multifundchannel, using v1 + v2
@@ -2055,6 +2058,7 @@ def test_multifunding_wumbo(node_factory):
20552058
l1.rpc.multifundchannel(destinations)
20562059

20572060

2061+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "flakes too frequently w/ VLS")
20582062
@unittest.skipIf(TEST_NETWORK == 'liquid-regtest', "Fees on elements are different")
20592063
@pytest.mark.openchannel('v1') # v2 the weight calculation is off by 3
20602064
@pytest.mark.parametrize("anchors", [False, True])
@@ -2448,6 +2452,7 @@ def test_update_fee(node_factory, bitcoind):
24482452
l2.daemon.wait_for_log('onchaind complete, forgetting peer')
24492453

24502454

2455+
@pytest.mark.developer
24512456
def test_fee_limits(node_factory, bitcoind):
24522457
l1, l2, l3, l4 = node_factory.get_nodes(4, opts=[{'dev-max-fee-multiplier': 5, 'may_reconnect': True,
24532458
'allow_warning': True},
@@ -3581,6 +3586,9 @@ def test_channel_features(node_factory, bitcoind, anchors):
35813586
assert only_one(l2.rpc.listpeerchannels()['channels'])['features'] == chan['features']
35823587

35833588

3589+
# Still fails w/ VLS_PERMISSIVE with "recomposed tx mismatch"
3590+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "Legacy channel type not supported")
3591+
@pytest.mark.developer("need dev-force-features")
35843592
def test_nonstatic_channel(node_factory, bitcoind):
35853593
"""Smoke test for a channel without option_static_remotekey"""
35863594
l1, l2 = node_factory.line_graph(2,
@@ -3696,6 +3704,8 @@ def test_openchannel_init_alternate(node_factory, executor):
36963704
print("nothing to do")
36973705

36983706

3707+
# Still fails w/ VLS_PERMISSIVE with "recomposed tx mismatch"
3708+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "Legacy channel type not supported")
36993709
def test_upgrade_statickey(node_factory, executor):
37003710
"""l1 doesn't have option_static_remotekey, l2 offers it."""
37013711
l1, l2 = node_factory.line_graph(2, opts=[{'may_reconnect': True,
@@ -3726,6 +3736,8 @@ def test_upgrade_statickey(node_factory, executor):
37263736
l2.daemon.wait_for_log(r"They sent desired_channel_type \[12\]")
37273737

37283738

3739+
# Still fails w/ VLS_PERMISSIVE with "recomposed tx mismatch"
3740+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "Legacy channel type not supported")
37293741
def test_upgrade_statickey_onchaind(node_factory, executor, bitcoind):
37303742
"""We test penalty before/after, and unilateral before/after"""
37313743
l1, l2 = node_factory.line_graph(2, opts=[{'may_reconnect': True,
@@ -3860,6 +3872,8 @@ def test_upgrade_statickey_onchaind(node_factory, executor, bitcoind):
38603872
wait_for(lambda: len(l2.rpc.listpeerchannels()['channels']) == 0)
38613873

38623874

3875+
# Still fails w/ VLS_PERMISSIVE with "recomposed tx mismatch"
3876+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "Legacy channel type not supported")
38633877
def test_upgrade_statickey_fail(node_factory, executor, bitcoind):
38643878
"""We reconnect at all points during retransmit, and we won't upgrade."""
38653879
l1_disconnects = ['-WIRE_COMMITMENT_SIGNED',

tests/test_db.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def test_max_channel_id(node_factory, bitcoind):
136136
@unittest.skipIf(not COMPAT, "needs COMPAT to convert obsolete db")
137137
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "This test is based on a sqlite3 snapshot")
138138
@unittest.skipIf(TEST_NETWORK != 'regtest', "The network must match the DB snapshot")
139+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't like channel_nonce changing")
139140
def test_scid_upgrade(node_factory, bitcoind):
140141
bitcoind.generate_block(1)
141142

@@ -167,6 +168,7 @@ def test_scid_upgrade(node_factory, bitcoind):
167168
@unittest.skipIf(not COMPAT, "needs COMPAT to convert obsolete db")
168169
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "This test is based on a sqlite3 snapshot")
169170
@unittest.skipIf(TEST_NETWORK != 'regtest', "The network must match the DB snapshot")
171+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't like channel_nonce changing")
170172
def test_last_tx_inflight_psbt_upgrade(node_factory, bitcoind):
171173
bitcoind.generate_block(12)
172174

@@ -185,6 +187,7 @@ def test_last_tx_inflight_psbt_upgrade(node_factory, bitcoind):
185187
@unittest.skipIf(not COMPAT, "needs COMPAT to convert obsolete db")
186188
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "This test is based on a sqlite3 snapshot")
187189
@unittest.skipIf(TEST_NETWORK != 'regtest', "The network must match the DB snapshot")
190+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't like channel_nonce changing")
188191
def test_last_tx_psbt_upgrade(node_factory, bitcoind):
189192
bitcoind.generate_block(12)
190193

@@ -219,6 +222,7 @@ def test_last_tx_psbt_upgrade(node_factory, bitcoind):
219222
@pytest.mark.slow_test
220223
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "This test is based on a sqlite3 snapshot")
221224
@unittest.skipIf(TEST_NETWORK != 'regtest', "The network must match the DB snapshot")
225+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support backfill yet")
222226
def test_backfill_scriptpubkeys(node_factory, bitcoind):
223227
bitcoind.generate_block(214)
224228

@@ -352,6 +356,7 @@ def get_dsn(self):
352356
os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3',
353357
"This test is based on a sqlite3 snapshot"
354358
)
359+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support DB migration")
355360
def test_local_basepoints_cache(bitcoind, node_factory):
356361
"""XXX started caching the local basepoints as well as the remote ones.
357362
@@ -440,6 +445,7 @@ def test_sqlite3_builtin_backup(bitcoind, node_factory):
440445

441446

442447
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "Don't know how to swap dbs in Postgres")
448+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "vlsd chokes on allowlist when started on wrong network")
443449
def test_db_sanity_checks(bitcoind, node_factory):
444450
l1, l2 = node_factory.get_nodes(2, opts=[{'allow_broken_log': True,
445451
'may_fail': True}, {}])

tests/test_gossip.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def test_announce_dns_suppressed(node_factory, bitcoind):
182182
assert addresses[0]['port'] == 1236
183183

184184

185+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "trouble with IPv6 in VLS CI runner")
185186
def test_announce_and_connect_via_dns(node_factory, bitcoind):
186187
""" Test that DNS annoucements propagate and can be used when connecting.
187188

tests/test_invoices.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ def test_invoice_weirdstring(node_factory):
130130
l1.rpc.delinvoice(weird_label, "unpaid")
131131

132132

133+
# Can't be filtered with VLS_PERMISSIVE, re-using preimage corrupts internal data ...
134+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "already have a different invoice for same secret")
133135
def test_invoice_preimage(node_factory):
134136
"""Test explicit invoice 'preimage'.
135137
"""

tests/test_misc.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,7 @@ def test_cli_commando(node_factory):
11451145
assert only_one(j['invoices'])['label'] == 'l"[]{}'
11461146

11471147

1148+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd integration test job control fails here")
11481149
def test_daemon_option(node_factory):
11491150
"""
11501151
Make sure --daemon at least vaguely works!
@@ -2173,6 +2174,7 @@ def test_bitcoind_feerate_floor(node_factory, bitcoind, anchors):
21732174

21742175

21752176
@unittest.skipIf(TEST_NETWORK != 'regtest', "Addresses are network specific")
2177+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support forced secrets")
21762178
def test_dev_force_bip32_seed(node_factory):
21772179
l1 = node_factory.get_node(options={'dev-force-bip32-seed': '0000000000000000000000000000000000000000000000000000000000000001'})
21782180
# First is m/0/0/1 ..
@@ -2511,6 +2513,7 @@ def test_regtest_upgrade(node_factory):
25112513

25122514
@unittest.skipIf(VALGRIND, "valgrind files can't be written since we rmdir")
25132515
@unittest.skipIf(TEST_NETWORK != "regtest", "needs bitcoin mainnet")
2516+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't create hsm_secret file")
25142517
def test_new_node_is_mainnet(node_factory):
25152518
"""Test that an empty directory causes us to be on mainnet"""
25162519
l1 = node_factory.get_node(start=False, may_fail=True)
@@ -2674,6 +2677,7 @@ def test_sendcustommsg(node_factory):
26742677
])
26752678

26762679

2680+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support dev-force-privkey")
26772681
def test_makesecret(node_factory):
26782682
"""
26792683
Test makesecret command.
@@ -2711,6 +2715,7 @@ def test_staticbackup(node_factory):
27112715
and l1.rpc.staticbackup()["scb"][0][16: 16 + 64] == _["channel_id"])
27122716

27132717

2718+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd says no such channel")
27142719
def test_recoverchannel(node_factory):
27152720
"""
27162721
Test recoverchannel
@@ -3744,6 +3749,7 @@ def test_setconfig(node_factory, bitcoind):
37443749
assert len(lines) == 3
37453750

37463751

3752+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "remote_hsmd doesn't support this command")
37473753
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "deletes database, which is assumed sqlite3")
37483754
def test_recover_command(node_factory, bitcoind):
37493755
l1, l2 = node_factory.get_nodes(2)

0 commit comments

Comments
 (0)