From 8f05d28049d00f7acf13d48d363a1b95db704bd6 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 25 Aug 2020 18:49:17 +0200 Subject: [PATCH] pytest: Stabilize test_onchaind_replay --- 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 7fcebd8f6..b2e3c9937 100644 --- a/tests/test_closing.py +++ b/tests/test_closing.py @@ -1110,7 +1110,7 @@ def test_onchaind_replay(node_factory, bitcoind): } l1.rpc.sendpay([routestep], rhash) l1.daemon.wait_for_log('sendrawtx exit 0') - bitcoind.generate_block(1) + bitcoind.generate_block(1, wait_for_mempool=1) # Wait for nodes to notice the failure, this seach needle is after the # DB commit so we're sure the tx entries in onchaindtxs have been added