Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test-utils: Fix wait_for_blocks in presence of reorgs (paritytech#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: paritytech/polkadot#7267 Signed-off-by: Alexandru Gheorghe <[email protected]>
- Loading branch information