From 1341ca2ae0253e46718ce362af77355327be5837 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Mon, 8 Feb 2021 10:25:38 +0100 Subject: [PATCH] pytest: Stabilize test_onchain_feechange dev-disconnect seems to be causing warning that we need to allow. --- tests/test_closing.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/test_closing.py b/tests/test_closing.py index b5376211f..7dc472756 100644 --- a/tests/test_closing.py +++ b/tests/test_closing.py @@ -1817,9 +1817,15 @@ def test_onchain_feechange(node_factory, bitcoind, executor): # We need 2 to drop to chain, because then 1's HTLC timeout tx # is generated on-the-fly, and is thus feerate sensitive. disconnects = ['-WIRE_UPDATE_FAIL_HTLC', 'permfail'] - l1, l2 = node_factory.line_graph(2, opts=[{'may_reconnect': True}, - {'may_reconnect': True, - 'disconnect': disconnects}]) + l1, l2 = node_factory.line_graph(2, opts=[ + { + 'may_reconnect': True, + 'allow_warning': True, + }, { + 'may_reconnect': True, + 'disconnect': disconnects, + } + ]) rhash = l2.rpc.invoice(10**8, 'onchain_timeout', 'desc')['payment_hash'] # We underpay, so it fails.