From cda5f60f3f1aba3ba3c2cf2373fd10b38b6b3c9a Mon Sep 17 00:00:00 2001 From: Ken Sedgwick Date: Thu, 8 Jun 2023 12:44:01 -0700 Subject: [PATCH] tests: Skip unless VLS_PERMISSIVE tests which violate policy --- tests/test_pay.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_pay.py b/tests/test_pay.py index d82a14beabaa..bc051da8fcf9 100644 --- a/tests/test_pay.py +++ b/tests/test_pay.py @@ -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) @@ -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""" @@ -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""" @@ -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"""