Skip to content

Commit 3db63c0

Browse files
committed
tests: Skip unless VLS_PERMISSIVE tests which violate policy
1 parent 51dd34a commit 3db63c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_pay.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ def test_pay_maxfee_shadow(node_factory):
562562
assert pay_status["amount_msat"] == Millisatoshi(amount)
563563

564564

565+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "grossly overpaid invoice")
565566
def test_sendpay(node_factory):
566567
l1, l2 = node_factory.line_graph(2, fundamount=10**6)
567568

@@ -2481,6 +2482,7 @@ def test_setchannel_startup_opts(node_factory, bitcoind):
24812482
assert result[1]['htlc_maximum_msat'] == Millisatoshi(5)
24822483

24832484

2485+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "invoice with any amount")
24842486
@pytest.mark.developer("gossip without DEVELOPER=1 is slow")
24852487
def test_channel_spendable(node_factory, bitcoind):
24862488
"""Test that spendable_msat is accurate"""
@@ -2538,6 +2540,7 @@ def test_channel_spendable(node_factory, bitcoind):
25382540
l2.rpc.waitsendpay(payment_hash, TIMEOUT)
25392541

25402542

2543+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "invoice with any amount")
25412544
@pytest.mark.developer("gossip without DEVELOPER=1 is slow")
25422545
def test_channel_receivable(node_factory, bitcoind):
25432546
"""Test that receivable_msat is accurate"""
@@ -2594,6 +2597,7 @@ def test_channel_receivable(node_factory, bitcoind):
25942597
l2.rpc.waitsendpay(payment_hash, TIMEOUT)
25952598

25962599

2600+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "invoice with any amount")
25972601
@pytest.mark.developer("gossip without DEVELOPER=1 is slow")
25982602
def test_channel_spendable_large(node_factory, bitcoind):
25992603
"""Test that spendable_msat is accurate for large channels"""

0 commit comments

Comments
 (0)