pytest: add message check to test_blockheight_disagreement

Make sure there was an actual disagreement!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2021-05-25 13:33:04 +09:30
committed by Christian Decker
parent b80b746cd9
commit df594be80a

View File

@@ -2902,6 +2902,9 @@ def test_blockheight_disagreement(node_factory, bitcoind, executor):
# Make sure l1 sends out the HTLC.
l1.daemon.wait_for_logs([r'NEW:: HTLC LOCAL'])
height = bitcoind.rpc.getblockchaininfo()['blocks']
l1.daemon.wait_for_log('Remote node appears to be on a longer chain.*catch up to block {}'.format(height))
# Unblock l1 from new blocks.
l1.daemon.rpcproxy.mock_rpc('getblockhash', None)