mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
pytest: fix flakiness in test_penalty_outhtlc
We were *supposed* to be waiting for the next commitment tx so we made sure the one we broadcast was old, *but* the 'revoke_and_ack' we were waiting for could be matched by the completion of the previous 'revoke_and_ack'. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
f73ea5d0ba
commit
2f78c90782
@ -2075,10 +2075,14 @@ class LightningDTests(BaseLightningDTests):
|
||||
l1.daemon.wait_for_log('dev_disconnect: =WIRE_COMMITMENT_SIGNED')
|
||||
l2.daemon.wait_for_log('dev_disconnect: =WIRE_COMMITMENT_SIGNED')
|
||||
|
||||
# Make sure both sides got revoke_and_ack for that commitment.
|
||||
l1.daemon.wait_for_log('peer_in WIRE_REVOKE_AND_ACK')
|
||||
l2.daemon.wait_for_log('peer_in WIRE_REVOKE_AND_ACK')
|
||||
|
||||
# Take our snapshot.
|
||||
tx = l1.rpc.dev_sign_last_tx(l2.info['id'])['tx']
|
||||
|
||||
# Let the continue
|
||||
# Let them continue
|
||||
l1.rpc.dev_reenable_commit(l2.info['id'])
|
||||
l2.rpc.dev_reenable_commit(l1.info['id'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user