Skip to content

Commit

Permalink
pytest: fix flake in test_upgrade_statickey_onchaind
Browse files Browse the repository at this point in the history
Reconnect manually, don't wait for automatic reconnect.

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Oct 9, 2021
1 parent 05ff02f commit e9551cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -3580,6 +3580,7 @@ def test_upgrade_statickey_onchaind(node_factory, executor, bitcoind):
l1.daemon.wait_for_log("chan#3: Removing out HTLC 0 state RCVD_REMOVE_ACK_REVOCATION FULFILLED")

l1.rpc.disconnect(l2.info['id'], force=True)
l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
l1.daemon.wait_for_log('option_static_remotekey enabled at 3/3')

# But this is the *pre*-update commit tx!
Expand All @@ -3601,6 +3602,7 @@ def test_upgrade_statickey_onchaind(node_factory, executor, bitcoind):
node_factory.join_nodes([l1, l2])

l1.rpc.disconnect(l2.info['id'], force=True)
l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
l1.daemon.wait_for_log('option_static_remotekey enabled at 1/1')

# Move to static_remotekey.
Expand Down

0 comments on commit e9551cf

Please sign in to comment.