pytest: fix flake in test_reconnect_no_update

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>
This commit is contained in:
Rusty Russell 2021-05-17 10:35:50 +09:30 committed by neil saitug
parent 0f2009c7a3
commit e141b71675

View File

@ -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")