Trait substrate_test_runtime_client::BlockchainEventsExt [−][src]
pub trait BlockchainEventsExt<C, B> where
C: BlockchainEvents<B>,
B: Block, { fn wait_for_blocks(
&self,
count: usize
) -> Pin<Box<dyn Future<Output = ()> + Send + 'static, Global>>; }
Expand description
An extension trait for BlockchainEvents
.
Required methods
Wait for count
blocks to be imported in the node and then exit. This function will not return if no blocks
are ever created, thus you should restrict the maximum amount of time of the test execution.