Skip to content

Commit 5c5e298

Browse files
committed
Skip zeroconf tests unless PERMISSIVE
1 parent a71a6f3 commit 5c5e298

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/test_opening.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,6 +1486,7 @@ def test_zeroconf_mindepth(bitcoind, node_factory):
14861486
wait_for(lambda: only_one(l2.rpc.listpeerchannels()['channels'])['state'] == "CHANNELD_NORMAL")
14871487

14881488

1489+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "tried commitment when funding is not buried ")
14891490
def test_zeroconf_open(bitcoind, node_factory):
14901491
"""Let's open a zeroconf channel
14911492
@@ -1654,6 +1655,7 @@ def test_zeroconf_public(bitcoind, node_factory, chainparams):
16541655
wait_for(lambda: only_one([x for x in n.rpc.bkpr_listbalances()['accounts'] if x['account'] == channel_id])['account_resolved'])
16551656

16561657

1658+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "tried commitment when funding is not buried ")
16571659
def test_zeroconf_forward(node_factory, bitcoind):
16581660
"""Ensure that we can use zeroconf channels in forwards.
16591661
@@ -1902,6 +1904,7 @@ def test_scid_alias_private(node_factory, bitcoind):
19021904
l1.rpc.waitsendpay(inv['payment_hash'])
19031905

19041906

1907+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "tried commitment when funding is not buried ")
19051908
def test_zeroconf_multichan_forward(node_factory):
19061909
"""The freedom to choose the forward channel bytes us when it is 0conf
19071910

tests/test_pay.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5202,6 +5202,7 @@ def test_payerkey(node_factory):
52025202
assert n.rpc.decode(b12)['invreq_payer_id'] == k
52035203

52045204

5205+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "tried commitment when funding is not buried ")
52055206
def test_pay_multichannel_use_zeroconf(bitcoind, node_factory):
52065207
"""Check that we use the zeroconf direct channel to pay when we need to"""
52075208
# 0. Setup normal channel, 200k sats.

0 commit comments

Comments
 (0)