Skip to content

Commit

Permalink
pytest: test_onchaind_replay needs to wait for tx broadcast.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rustyrussell authored and cdecker committed Jun 13, 2018
1 parent 965c20c commit 8183590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_lightningd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1730,7 +1730,7 @@ def test_onchaind_replay(self):
'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
Expand Down

0 comments on commit 8183590

Please sign in to comment.