From c43d09dfd37c93e3667101f8e9e302d14dfa0385 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 15 Aug 2019 08:47:27 +0930 Subject: [PATCH] pytest: two more slow tests I missed. Signed-off-by: Rusty Russell --- tests/test_invoices.py | 1 + tests/test_pay.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tests/test_invoices.py b/tests/test_invoices.py index bf39032a9..2389fd390 100644 --- a/tests/test_invoices.py +++ b/tests/test_invoices.py @@ -122,6 +122,7 @@ def test_invoice_preimage(node_factory): l2.rpc.invoice(123456, 'inv2', '?', preimage=invoice_preimage) +@unittest.skipIf(not DEVELOPER, "gossip without DEVELOPER=1 is slow") def test_invoice_routeboost(node_factory, bitcoind): """Test routeboost 'r' hint in bolt11 invoice. """ diff --git a/tests/test_pay.py b/tests/test_pay.py index ba459818e..80180984a 100644 --- a/tests/test_pay.py +++ b/tests/test_pay.py @@ -2049,6 +2049,7 @@ def test_setchannelfee_all(node_factory, bitcoind): assert result['channels'][1]['short_channel_id'] == scid3 +@unittest.skipIf(not DEVELOPER, "gossip without DEVELOPER=1 is slow") def test_channel_spendable(node_factory, bitcoind): """Test that spendable_msat is accurate""" sats = 10**6 @@ -2101,6 +2102,7 @@ def test_channel_spendable(node_factory, bitcoind): l2.rpc.waitsendpay(payment_hash, TIMEOUT) +@unittest.skipIf(not DEVELOPER, "gossip without DEVELOPER=1 is slow") def test_channel_spendable_large(node_factory, bitcoind): """Test that spendable_msat is accurate for large channels""" # This is almost the max allowable spend.