Skip to content

Commit

Permalink
tests: Skip unless VLS_PERMISSIVE tests which violate policy
Browse files Browse the repository at this point in the history
  • Loading branch information
ksedgwic committed Jun 11, 2023
1 parent 017d50b commit cda5f60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_pay.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ def test_pay_maxfee_shadow(node_factory):
assert pay_status["amount_msat"] == Millisatoshi(amount)


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

Expand Down Expand Up @@ -2473,6 +2474,7 @@ def test_setchannel_startup_opts(node_factory, bitcoind):
assert result[1]['htlc_maximum_msat'] == Millisatoshi(5)


@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "invoice with any amount")
@pytest.mark.developer("gossip without DEVELOPER=1 is slow")
def test_channel_spendable(node_factory, bitcoind):
"""Test that spendable_msat is accurate"""
Expand Down Expand Up @@ -2530,6 +2532,7 @@ def test_channel_spendable(node_factory, bitcoind):
l2.rpc.waitsendpay(payment_hash, TIMEOUT)


@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "invoice with any amount")
@pytest.mark.developer("gossip without DEVELOPER=1 is slow")
def test_channel_receivable(node_factory, bitcoind):
"""Test that receivable_msat is accurate"""
Expand Down Expand Up @@ -2586,6 +2589,7 @@ def test_channel_receivable(node_factory, bitcoind):
l2.rpc.waitsendpay(payment_hash, TIMEOUT)


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

0 comments on commit cda5f60

Please sign in to comment.