test-utils: Fix wait_for_blocks in presence of reorgs (#14215)
In the cases where a reorg happens we might receive notifications for different blocks at the same level, so instead of the chain having count new blocks it has less and that will break the tests which use this function. So, use the block number to identify that `count` blocks have been built in the chain. Examples where this issue was hit: https://github.com/paritytech/polkadot/issues/7267 Signed-off-by: Alexandru Gheorghe <[email protected]>
parent
dca48116
Please register or sign in to comment