Skip to content

Commit 30a3ee8

Browse files
committed
Skip zeroconf tests unless PERMISSIVE
1 parent a9084f6 commit 30a3ee8

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

16321632

1633+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "tried commitment when funding is not buried ")
16331634
def test_zeroconf_open(bitcoind, node_factory):
16341635
"""Let's open a zeroconf channel
16351636
@@ -1798,6 +1799,7 @@ def test_zeroconf_public(bitcoind, node_factory, chainparams):
17981799
wait_for(lambda: only_one([x for x in n.rpc.bkpr_listbalances()['accounts'] if x['account'] == channel_id])['account_resolved'])
17991800

18001801

1802+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "tried commitment when funding is not buried ")
18011803
def test_zeroconf_forward(node_factory, bitcoind):
18021804
"""Ensure that we can use zeroconf channels in forwards.
18031805
@@ -2046,6 +2048,7 @@ def test_scid_alias_private(node_factory, bitcoind):
20462048
l1.rpc.waitsendpay(inv['payment_hash'])
20472049

20482050

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

tests/test_pay.py

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

51805180

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

0 commit comments

Comments
 (0)