Skip to content

Commit

Permalink
Skip zeroconf tests unless PERMISSIVE
Browse files Browse the repository at this point in the history
  • Loading branch information
ksedgwic committed May 20, 2023
1 parent 59a4ac3 commit 963ac52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_opening.py
Original file line number Diff line number Diff line change
Expand Up @@ -1347,6 +1347,7 @@ def test_zeroconf_mindepth(bitcoind, node_factory):
wait_for(lambda: only_one(l2.rpc.listpeerchannels()['channels'])['state'] == "CHANNELD_NORMAL")


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


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


@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "tried commitment when funding is not buried ")
def test_zeroconf_multichan_forward(node_factory):
"""The freedom to choose the forward channel bytes us when it is 0conf
Expand Down
1 change: 1 addition & 0 deletions tests/test_pay.py
Original file line number Diff line number Diff line change
Expand Up @@ -5324,6 +5324,7 @@ def test_payerkey(node_factory):
assert n.rpc.decode(b12)['invreq_payer_id'] == k


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

0 comments on commit 963ac52

Please sign in to comment.