mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 07:01:03 +00:00
Companion for Substrate#8472 (#2759)
* Companion for Substrate#8472 https://github.com/paritytech/substrate/pull/8472 * update Substrate Co-authored-by: parity-processbot <>
This commit is contained in:
Generated
+153
-146
File diff suppressed because it is too large
Load Diff
@@ -409,7 +409,7 @@ mod tests {
|
||||
move |n| {
|
||||
for _ in 0..n {
|
||||
let block = client.init_polkadot_block_builder().build().unwrap().block;
|
||||
client.import(BlockOrigin::Own, block).unwrap();
|
||||
futures::executor::block_on(client.import(BlockOrigin::Own, block)).unwrap();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -30,3 +30,4 @@ sp-state-machine = { git = "https://github.com/paritytech/substrate", branch = "
|
||||
|
||||
[dev-dependencies]
|
||||
sp-keyring = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
futures = "0.3.12"
|
||||
|
||||
@@ -94,7 +94,7 @@ mod tests{
|
||||
let block_builder = client.init_polkadot_block_builder();
|
||||
let block = block_builder.build().expect("Finalizes the block").block;
|
||||
|
||||
client.import(BlockOrigin::Own, block).expect("Imports the block");
|
||||
futures::executor::block_on(client.import(BlockOrigin::Own, block)).expect("Imports the block");
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -112,6 +112,6 @@ mod tests{
|
||||
|
||||
let block = block_builder.build().expect("Finalizes the block").block;
|
||||
|
||||
client.import(BlockOrigin::Own, block).expect("Imports the block");
|
||||
futures::executor::block_on(client.import(BlockOrigin::Own, block)).expect("Imports the block");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user