Skip to content
Snippets Groups Projects
Unverified Commit 1d05b9a9 authored by Clara van Staden's avatar Clara van Staden Committed by GitHub
Browse files

Fix Snowbridge benchmark tests (#7296)


Related to:
https://github.com/paritytech/polkadot-sdk/issues/7295#issuecomment-2607211278

---------

Co-authored-by: default avatarBastian Köcher <git@kchr.de>
Co-authored-by: default avatarAdrian Catangiu <adrian@parity.io>
parent ada12be6
No related merge requests found
Pipeline #513721 waiting for manual action with stages
in 38 minutes and 9 seconds
...@@ -394,10 +394,14 @@ parameter_types! { ...@@ -394,10 +394,14 @@ parameter_types! {
impl pallet_message_queue::Config for Runtime { impl pallet_message_queue::Config for Runtime {
type RuntimeEvent = RuntimeEvent; type RuntimeEvent = RuntimeEvent;
type WeightInfo = weights::pallet_message_queue::WeightInfo<Runtime>; type WeightInfo = weights::pallet_message_queue::WeightInfo<Runtime>;
#[cfg(feature = "runtime-benchmarks")] // Use the NoopMessageProcessor exclusively for benchmarks, not for tests with the
// runtime-benchmarks feature as tests require the BridgeHubMessageRouter to process messages.
// The "test" feature flag doesn't work, hence the reliance on the "std" feature, which is
// enabled during tests.
#[cfg(all(not(feature = "std"), feature = "runtime-benchmarks"))]
type MessageProcessor = type MessageProcessor =
pallet_message_queue::mock_helpers::NoopMessageProcessor<AggregateMessageOrigin>; pallet_message_queue::mock_helpers::NoopMessageProcessor<AggregateMessageOrigin>;
#[cfg(not(feature = "runtime-benchmarks"))] #[cfg(any(feature = "std", not(feature = "runtime-benchmarks")))]
type MessageProcessor = bridge_hub_common::BridgeHubMessageRouter< type MessageProcessor = bridge_hub_common::BridgeHubMessageRouter<
xcm_builder::ProcessXcmMessage< xcm_builder::ProcessXcmMessage<
AggregateMessageOrigin, AggregateMessageOrigin,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment