Skip to content

Commit 963ac52

Browse files
committed
Skip zeroconf tests unless PERMISSIVE
1 parent 59a4ac3 commit 963ac52

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
@@ -1347,6 +1347,7 @@ def test_zeroconf_mindepth(bitcoind, node_factory):
13471347
wait_for(lambda: only_one(l2.rpc.listpeerchannels()['channels'])['state'] == "CHANNELD_NORMAL")
13481348

13491349

1350+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "tried commitment when funding is not buried ")
13501351
def test_zeroconf_open(bitcoind, node_factory):
13511352
"""Let's open a zeroconf channel
13521353
@@ -1515,6 +1516,7 @@ def test_zeroconf_public(bitcoind, node_factory, chainparams):
15151516
wait_for(lambda: only_one([x for x in n.rpc.bkpr_listbalances()['accounts'] if x['account'] == channel_id])['account_resolved'])
15161517

15171518

1519+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "tried commitment when funding is not buried ")
15181520
def test_zeroconf_forward(node_factory, bitcoind):
15191521
"""Ensure that we can use zeroconf channels in forwards.
15201522
@@ -1769,6 +1771,7 @@ def test_scid_alias_private(node_factory, bitcoind):
17691771
l1.rpc.waitsendpay(inv['payment_hash'])
17701772

17711773

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

tests/test_pay.py

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

53265326

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

0 commit comments

Comments
 (0)