From 711133e3c7c232095deae428c95cb1e49ffa05ef Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 8 Oct 2020 10:35:02 +1030 Subject: [PATCH] pytest: fix flaky test. l2 only gives up 100 blocks after it ignores the HTLC, so sometimes this test fails. Signed-off-by: Rusty Russell --- tests/test_closing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_closing.py b/tests/test_closing.py index 7a9bca170..46f79c2d8 100644 --- a/tests/test_closing.py +++ b/tests/test_closing.py @@ -1736,6 +1736,7 @@ def test_onchain_their_unilateral_out(node_factory, bitcoind): l2.bitcoin.generate_block(9) l1.wait_for_onchaind_broadcast('OUR_HTLC_TIMEOUT_TO_US', 'THEIR_UNILATERAL/OUR_HTLC') + l2.daemon.wait_for_log('Ignoring output .*_UNILATERAL/THEIR_HTLC') err = q.get(timeout=10) if err: