From 7925469f88e13b482bc7187e383d8865422865cd Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 23 Aug 2018 08:58:25 +0930 Subject: [PATCH] pytest: fix flaky assert in test_htlc_send_timeout. If feerates change, L2 sends L3 a commit for that, which causes us to fail the assert (which says we won't send a commitment_signed). Signed-off-by: Rusty Russell --- tests/test_misc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_misc.py b/tests/test_misc.py index 14146c3c8..42d4e67a4 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -792,7 +792,8 @@ def test_htlc_send_timeout(node_factory, bitcoind): feerates=(7500, 7500, 7500)) # Blackhole it after it sends HTLC_ADD to l3. l2 = node_factory.get_node(disconnect=['0WIRE_UPDATE_ADD_HTLC'], - options={'log-level': 'io'}) + options={'log-level': 'io'}, + feerates=(7500, 7500, 7500)) l3 = node_factory.get_node() l1.rpc.connect(l2.info['id'], 'localhost', l2.port)