From 8183590cdbde6222fe5b9f2282f570265919b7d9 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 13 Jun 2018 19:42:52 +0930 Subject: [PATCH] pytest: test_onchaind_replay needs to wait for tx broadcast. Waiting for 'Disabling channel' is not enough, since it's async to the actual tx broadcast: I caught a case where the unilateral close wasn't in the block, and so failed. Signed-off-by: Rusty Russell --- tests/test_lightningd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_lightningd.py b/tests/test_lightningd.py index eb729b778..edc1e6acd 100644 --- a/tests/test_lightningd.py +++ b/tests/test_lightningd.py @@ -1730,7 +1730,7 @@ class LightningDTests(BaseLightningDTests): 'channel': '1:1:1' } l1.rpc.sendpay(to_json([routestep]), rhash) - l1.daemon.wait_for_log(r'Disabling channel') + l1.daemon.wait_for_log('sendrawtx exit 0') bitcoind.rpc.generate(1) # Wait for nodes to notice the failure, this seach needle is after the