mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 23:21:06 +00:00
Companion for Taskmanager: Remove clean_shutdown (#4336)
* Companion for Taskmanager: Remove `clean_shutdown` https://github.com/paritytech/substrate/pull/10314 * Update Substrate * Remove warning
This commit is contained in:
Generated
+187
-186
File diff suppressed because it is too large
Load Diff
@@ -52,7 +52,4 @@ async fn ensure_test_service_build_blocks() {
|
|||||||
_ = t3 => panic!("service Bob failed"),
|
_ = t3 => panic!("service Bob failed"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
alice.task_manager.clean_shutdown().await;
|
|
||||||
bob.task_manager.clean_shutdown().await;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,4 @@ async fn call_function_actually_work() {
|
|||||||
let result = object.get("result");
|
let result = object.get("result");
|
||||||
let result = result.expect("key result exists");
|
let result = result.expect("key result exists");
|
||||||
assert_eq!(result.as_str().map(|x| x.starts_with("0x")), Some(true), "result starts with 0x");
|
assert_eq!(result.as_str().map(|x| x.starts_with("0x")), Some(true), "result starts with 0x");
|
||||||
|
|
||||||
alice.task_manager.clean_shutdown().await;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ const PUPPET_EXE: &str = env!("CARGO_BIN_EXE_adder_collator_puppet_worker");
|
|||||||
// If this test is failing, make sure to run all tests with the `real-overseer` feature being enabled.
|
// If this test is failing, make sure to run all tests with the `real-overseer` feature being enabled.
|
||||||
#[substrate_test_utils::test]
|
#[substrate_test_utils::test]
|
||||||
async fn collating_using_adder_collator() {
|
async fn collating_using_adder_collator() {
|
||||||
use futures::join;
|
|
||||||
use polkadot_primitives::v1::Id as ParaId;
|
use polkadot_primitives::v1::Id as ParaId;
|
||||||
use sp_keyring::AccountKeyring::*;
|
use sp_keyring::AccountKeyring::*;
|
||||||
|
|
||||||
@@ -80,10 +79,4 @@ async fn collating_using_adder_collator() {
|
|||||||
|
|
||||||
// Wait until the collator received `12` seconded statements for its collations.
|
// Wait until the collator received `12` seconded statements for its collations.
|
||||||
collator.wait_for_seconded_collations(12).await;
|
collator.wait_for_seconded_collations(12).await;
|
||||||
|
|
||||||
join!(
|
|
||||||
alice.task_manager.clean_shutdown(),
|
|
||||||
bob.task_manager.clean_shutdown(),
|
|
||||||
charlie.task_manager.clean_shutdown(),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user