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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-06-13 19:42:52 +09:30 committed by Christian Decker
parent 965c20caae
commit 8183590cdb
1 changed files with 1 additions and 1 deletions

View File

@ -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