From 4c5862eab14de215da00838df89bcb7496771ff6 Mon Sep 17 00:00:00 2001 From: darosior Date: Wed, 5 Feb 2020 17:58:45 +0100 Subject: [PATCH] pytest: fixup flaky test_closing_specified_destination --- tests/test_closing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_closing.py b/tests/test_closing.py index 0e8700d50..88c7b9738 100644 --- a/tests/test_closing.py +++ b/tests/test_closing.py @@ -328,7 +328,7 @@ def test_closing_specified_destination(node_factory, bitcoind, chainparams): # Both nodes should have disabled the channel in their view wait_for(lambda: len(l1.getactivechannels()) == 0) - assert bitcoind.rpc.getmempoolinfo()['size'] == 3 + wait_for(lambda: bitcoind.rpc.getmempoolinfo()['size'] == 3) # Now grab the close transaction closetxs = {}