diff --git a/runtime/integration-tests/src/generic/cases/liquidity_pools.rs b/runtime/integration-tests/src/generic/cases/liquidity_pools.rs index c7c8e9e49b..cdfb6706ea 100644 --- a/runtime/integration-tests/src/generic/cases/liquidity_pools.rs +++ b/runtime/integration-tests/src/generic/cases/liquidity_pools.rs @@ -7197,6 +7197,15 @@ mod centrifuge { Default::default(), ); + // Configuring XCM in this test fails because the Hrmp + // configuration is not applied. We force the application here, + // but we should configure correctly this because something is off. + env.relay_state_mut(|| { + polkadot_runtime_parachains::configuration::Pallet::>::force_set_active_config( + crate::generic::envs::fudge_env::handle::hrmp_host_config() + ); + }); + setup_xcm(&mut env); setup_usdc_xcm(&mut env); diff --git a/runtime/integration-tests/src/generic/envs/fudge_env/handle.rs b/runtime/integration-tests/src/generic/envs/fudge_env/handle.rs index 170762782a..0e5321df5e 100644 --- a/runtime/integration-tests/src/generic/envs/fudge_env/handle.rs +++ b/runtime/integration-tests/src/generic/envs/fudge_env/handle.rs @@ -159,20 +159,7 @@ pub trait FudgeHandle { Self::RelayRuntime, >::default(); - let mut host_config = HostConfiguration::default(); - host_config.max_downward_message_size = 1024; - host_config.hrmp_channel_max_capacity = 100; - host_config.hrmp_channel_max_message_size = 1024; - host_config.hrmp_channel_max_total_size = 1024; - host_config.hrmp_max_parachain_outbound_channels = 10; - host_config.hrmp_max_parachain_inbound_channels = 10; - host_config.hrmp_max_message_num_per_candidate = 100; - host_config.max_upward_queue_count = 10; - host_config.max_upward_queue_size = 1024; - host_config.max_upward_message_size = 1024; - host_config.max_upward_message_num_per_candidate = 100; - - configuration.config = host_config; + configuration.config = hrmp_host_config(); state .insert_storage( @@ -363,3 +350,20 @@ pub trait FudgeHandle { runtime } } + +pub fn hrmp_host_config>() -> HostConfiguration { + HostConfiguration { + max_downward_message_size: 1024, + hrmp_channel_max_capacity: 100, + hrmp_channel_max_message_size: 1024, + hrmp_channel_max_total_size: 1024, + hrmp_max_parachain_outbound_channels: 10, + hrmp_max_parachain_inbound_channels: 10, + hrmp_max_message_num_per_candidate: 100, + max_upward_queue_count: 10, + max_upward_queue_size: 1024, + max_upward_message_size: 1024, + max_upward_message_num_per_candidate: 100, + ..Default::default() + } +}