mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 15:04:19 +01:00
pytest: fix flake in test_connection.py::test_opener_feerate_reconnect
Make sure it sees disconnect before reconnect, otherwise the next command fails since we're now disconnected. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -2748,6 +2748,7 @@ def test_opener_feerate_reconnect(node_factory, bitcoind):
|
||||
|
||||
# Wait until they reconnect.
|
||||
l1.daemon.wait_for_log('Peer transient failure in CHANNELD_NORMAL')
|
||||
l1.daemon.wait_for_log('peer_disconnect_done')
|
||||
wait_for(lambda: l1.rpc.getpeer(l2.info['id'])['connected'])
|
||||
|
||||
# Should work normally.
|
||||
|
||||
Reference in New Issue
Block a user