testing: fix test_upgrade_statickey_onchaind

Seems a timing issue that should be figured out, his makes the test pass.
This commit is contained in:
Simon Vrouwe 2021-11-07 12:15:31 +02:00 committed by Rusty Russell
parent 2240f09f8b
commit aae5e7822f
1 changed files with 3 additions and 0 deletions

View File

@ -3541,6 +3541,9 @@ def test_upgrade_statickey_onchaind(node_factory, executor, bitcoind):
l1.daemon.wait_for_log('option_static_remotekey enabled at 1/1') l1.daemon.wait_for_log('option_static_remotekey enabled at 1/1')
# Pre-statickey penalty works. # Pre-statickey penalty works.
# FIXME: Without this sleep, l1 will broadcasts one tx more compared to good
# case, causing `wait_for_onchaind_broadcast` to timeout.
time.sleep(5)
bitcoind.rpc.sendrawtransaction(tx) bitcoind.rpc.sendrawtransaction(tx)
bitcoind.generate_block(1) bitcoind.generate_block(1)