mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 00:41:08 +00:00
* Companion for #6726 * Spaces * 'Update substrate' Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -706,7 +706,7 @@ mod test {
|
||||
signed_availability: signed.clone(),
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) =
|
||||
make_subsystem_context::<BitfieldDistributionMessage, _>(pool);
|
||||
|
||||
@@ -766,7 +766,7 @@ mod test {
|
||||
signed_availability: signed.clone(),
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) =
|
||||
make_subsystem_context::<BitfieldDistributionMessage, _>(pool);
|
||||
|
||||
@@ -818,7 +818,7 @@ mod test {
|
||||
signed_availability: signed_bitfield.clone(),
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) =
|
||||
make_subsystem_context::<BitfieldDistributionMessage, _>(pool);
|
||||
|
||||
@@ -915,7 +915,7 @@ mod test {
|
||||
signed_availability: signed_bitfield.clone(),
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) =
|
||||
make_subsystem_context::<BitfieldDistributionMessage, _>(pool);
|
||||
|
||||
@@ -1052,7 +1052,7 @@ mod test {
|
||||
// validator 0 key pair
|
||||
let (mut state, _signing_context, _validator_pair) = state_with_view(view![], hash_a.clone());
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) =
|
||||
make_subsystem_context::<BitfieldDistributionMessage, _>(pool);
|
||||
|
||||
|
||||
@@ -635,7 +635,7 @@ mod tests {
|
||||
}
|
||||
|
||||
fn test_harness<T: Future<Output=()>>(test: impl FnOnce(TestHarness) -> T) {
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (network, network_handle) = new_test_network();
|
||||
let (context, virtual_overseer) = polkadot_subsystem::test_helpers::make_subsystem_context(pool);
|
||||
|
||||
|
||||
@@ -619,7 +619,7 @@ mod tests {
|
||||
our_view: View(vec![hash_a, hash_b]),
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) = polkadot_subsystem::test_helpers::make_subsystem_context(pool);
|
||||
let mut descriptor = CandidateDescriptor::default();
|
||||
descriptor.pov_hash = pov_hash;
|
||||
@@ -699,7 +699,7 @@ mod tests {
|
||||
our_view: View(vec![hash_a]),
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) = polkadot_subsystem::test_helpers::make_subsystem_context(pool);
|
||||
let mut descriptor = CandidateDescriptor::default();
|
||||
descriptor.pov_hash = pov_hash;
|
||||
@@ -777,7 +777,7 @@ mod tests {
|
||||
our_view: View(vec![hash_a]),
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) = polkadot_subsystem::test_helpers::make_subsystem_context(pool);
|
||||
|
||||
executor::block_on(async move {
|
||||
@@ -849,7 +849,7 @@ mod tests {
|
||||
our_view: View(vec![hash_a]),
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) = polkadot_subsystem::test_helpers::make_subsystem_context(pool);
|
||||
|
||||
executor::block_on(async move {
|
||||
@@ -937,7 +937,7 @@ mod tests {
|
||||
our_view: View(vec![hash_a]),
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) = polkadot_subsystem::test_helpers::make_subsystem_context(pool);
|
||||
|
||||
executor::block_on(async move {
|
||||
@@ -1000,7 +1000,7 @@ mod tests {
|
||||
our_view: View(vec![hash_a]),
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) = polkadot_subsystem::test_helpers::make_subsystem_context(pool);
|
||||
|
||||
executor::block_on(async move {
|
||||
@@ -1061,7 +1061,7 @@ mod tests {
|
||||
our_view: View(vec![hash_a]),
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) = polkadot_subsystem::test_helpers::make_subsystem_context(pool);
|
||||
|
||||
executor::block_on(async move {
|
||||
@@ -1119,7 +1119,7 @@ mod tests {
|
||||
our_view: View(vec![hash_a]),
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) = polkadot_subsystem::test_helpers::make_subsystem_context(pool);
|
||||
|
||||
executor::block_on(async move {
|
||||
@@ -1204,7 +1204,7 @@ mod tests {
|
||||
our_view: View(vec![hash_a, hash_b]),
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) = polkadot_subsystem::test_helpers::make_subsystem_context(pool);
|
||||
|
||||
executor::block_on(async move {
|
||||
@@ -1266,7 +1266,7 @@ mod tests {
|
||||
our_view: View(vec![hash_a]),
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) = polkadot_subsystem::test_helpers::make_subsystem_context(pool);
|
||||
|
||||
executor::block_on(async move {
|
||||
@@ -1343,7 +1343,7 @@ mod tests {
|
||||
our_view: View(vec![hash_a]),
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) = polkadot_subsystem::test_helpers::make_subsystem_context(pool);
|
||||
|
||||
executor::block_on(async move {
|
||||
@@ -1426,7 +1426,7 @@ mod tests {
|
||||
our_view: View(vec![hash_a]),
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) = polkadot_subsystem::test_helpers::make_subsystem_context(pool);
|
||||
|
||||
executor::block_on(async move {
|
||||
|
||||
@@ -1212,7 +1212,7 @@ mod tests {
|
||||
},
|
||||
};
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) = polkadot_subsystem::test_helpers::make_subsystem_context(pool);
|
||||
let peer = PeerId::random();
|
||||
|
||||
@@ -1304,7 +1304,7 @@ mod tests {
|
||||
(peer_c.clone(), peer_data_from_view(peer_c_view)),
|
||||
].into_iter().collect();
|
||||
|
||||
let pool = sp_core::testing::SpawnBlockingExecutor::new();
|
||||
let pool = sp_core::testing::TaskExecutor::new();
|
||||
let (mut ctx, mut handle) = polkadot_subsystem::test_helpers::make_subsystem_context(pool);
|
||||
|
||||
executor::block_on(async move {
|
||||
|
||||
Reference in New Issue
Block a user