mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-20 23:15:42 +00:00
Companion for removal of execution strategies (#7443)
* Companion for removal of execution strategies https://github.com/paritytech/substrate/pull/14387 * Fix some tests * 🤦 * Adapt to latest changes * Start supporting the offchain transaction pool * Fix tests * FMT * Remove patches * Update Substrate * update lockfile for {"substrate"} * Fix parachain upgrade smoke test * Fix test * Rewrite all tests to use `MockSubstemClient` --------- Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -19,8 +19,8 @@
|
||||
|
||||
use frame_support::{codec::Encode, dispatch::GetDispatchInfo, weights::Weight};
|
||||
use polkadot_test_client::{
|
||||
BlockBuilderExt, ClientBlockImportExt, DefaultTestClientBuilderExt, ExecutionStrategy,
|
||||
InitPolkadotBlockBuilder, TestClientBuilder, TestClientBuilderExt,
|
||||
BlockBuilderExt, ClientBlockImportExt, DefaultTestClientBuilderExt, InitPolkadotBlockBuilder,
|
||||
TestClientBuilder, TestClientBuilderExt,
|
||||
};
|
||||
use polkadot_test_runtime::{pallet_test_notifier, xcm_config::XcmConfig};
|
||||
use polkadot_test_service::construct_extrinsic;
|
||||
@@ -32,9 +32,7 @@ use xcm_executor::traits::WeightBounds;
|
||||
#[test]
|
||||
fn basic_buy_fees_message_executes() {
|
||||
sp_tracing::try_init_simple();
|
||||
let mut client = TestClientBuilder::new()
|
||||
.set_execution_strategy(ExecutionStrategy::AlwaysWasm)
|
||||
.build();
|
||||
let mut client = TestClientBuilder::new().build();
|
||||
|
||||
let msg = Xcm(vec![
|
||||
WithdrawAsset((Parent, 100).into()),
|
||||
@@ -75,9 +73,7 @@ fn basic_buy_fees_message_executes() {
|
||||
#[test]
|
||||
fn transact_recursion_limit_works() {
|
||||
sp_tracing::try_init_simple();
|
||||
let mut client = TestClientBuilder::new()
|
||||
.set_execution_strategy(ExecutionStrategy::AlwaysWasm)
|
||||
.build();
|
||||
let mut client = TestClientBuilder::new().build();
|
||||
|
||||
let mut msg = Xcm(vec![ClearOrigin]);
|
||||
let max_weight = <XcmConfig as xcm_executor::Config>::Weigher::weight(&mut msg).unwrap();
|
||||
@@ -132,9 +128,7 @@ fn query_response_fires() {
|
||||
use polkadot_test_runtime::RuntimeEvent::TestNotifier;
|
||||
|
||||
sp_tracing::try_init_simple();
|
||||
let mut client = TestClientBuilder::new()
|
||||
.set_execution_strategy(ExecutionStrategy::AlwaysWasm)
|
||||
.build();
|
||||
let mut client = TestClientBuilder::new().build();
|
||||
|
||||
let mut block_builder = client.init_polkadot_block_builder();
|
||||
|
||||
@@ -216,9 +210,7 @@ fn query_response_elicits_handler() {
|
||||
use polkadot_test_runtime::RuntimeEvent::TestNotifier;
|
||||
|
||||
sp_tracing::try_init_simple();
|
||||
let mut client = TestClientBuilder::new()
|
||||
.set_execution_strategy(ExecutionStrategy::AlwaysWasm)
|
||||
.build();
|
||||
let mut client = TestClientBuilder::new().build();
|
||||
|
||||
let mut block_builder = client.init_polkadot_block_builder();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user