Skip to content

Commit

Permalink
testing: fix test_upgrade_statickey_onchaind
Browse files Browse the repository at this point in the history
Seems a timing issue that should be figured out, his makes the test pass.
  • Loading branch information
SimonVrouwe committed Nov 26, 2021
1 parent d10f786 commit 0a40623
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

# 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.generate_block(1)

Expand Down

0 comments on commit 0a40623

Please sign in to comment.