Skip to content

Commit

Permalink
pytest: fix flake in test_reconnect_no_update
Browse files Browse the repository at this point in the history
If l2 didn't get FUNDING_LOCKED from l1 before it disconnected, it
won't be in state CHANNELD_NORMAL: it will be in DUALOPEND_AWAITING_LOCKIN.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell authored and niftynei committed May 17, 2021
1 parent f56380a commit 1d1d64e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,6 @@ def test_reconnect_no_update(node_factory, executor, bitcoind):
# automatic retry.
fundchannel_exec = executor.submit(l1.fundchannel, l2, 10**6, False)
if l1.config('experimental-dual-fund'):
l2.daemon.wait_for_log(r"Peer has reconnected, state CHANNELD_NORMAL")
l1.daemon.wait_for_log(r"dualopend.* Retransmitting funding_locked for channel")
else:
l1.daemon.wait_for_log(r"channeld.* Retransmitting funding_locked for channel")
Expand Down

0 comments on commit 1d1d64e

Please sign in to comment.