Skip to content
Commit 3320076f authored by Alexandru Gheorghe's avatar Alexandru Gheorghe Committed by GitHub
Browse files

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: default avatarAlexandru Gheorghe <[email protected]>
parent dca48116
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment