Skip to content

Commit

Permalink
xcm-emulator mini fix (#3031)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkontur authored Aug 18, 2023
1 parent 73cb081 commit 33046b6
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ fn open_hrmp_channel_between_paras_works() {
bx!(relay_destination.clone()),
bx!(xcm),
));

PenpalKusamaA::assert_xcm_pallet_sent();
});

Kusama::execute_with(|| {
Expand Down Expand Up @@ -103,6 +105,8 @@ fn open_hrmp_channel_between_paras_works() {
bx!(relay_destination),
bx!(xcm),
));

PenpalKusamaB::assert_xcm_pallet_sent();
});

Kusama::execute_with(|| {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ fn send_xcm_from_para_to_system_para_paying_fee_with_assets_works() {
bx!(xcm),
));

AssetHubKusama::assert_xcm_pallet_sent();
PenpalKusamaA::assert_xcm_pallet_sent();
});

AssetHubKusama::execute_with(|| {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ fn open_hrmp_channel_between_paras_works() {
bx!(relay_destination.clone()),
bx!(xcm),
));

PenpalPolkadotA::assert_xcm_pallet_sent();
});

Polkadot::execute_with(|| {
Expand Down Expand Up @@ -103,6 +105,8 @@ fn open_hrmp_channel_between_paras_works() {
bx!(relay_destination),
bx!(xcm),
));

PenpalPolkadotB::assert_xcm_pallet_sent();
});

Polkadot::execute_with(|| {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ fn send_xcm_from_para_to_system_para_paying_fee_with_assets_works() {
bx!(xcm),
));

AssetHubPolkadot::assert_xcm_pallet_sent();
PenpalPolkadotA::assert_xcm_pallet_sent();
});

AssetHubPolkadot::execute_with(|| {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ fn send_xcm_from_para_to_system_para_paying_fee_with_assets_works() {
bx!(xcm),
));

AssetHubWestend::assert_xcm_pallet_sent();
PenpalWestendA::assert_xcm_pallet_sent();
});

AssetHubWestend::execute_with(|| {
Expand Down
11 changes: 11 additions & 0 deletions cumulus/parachains/integration-tests/emulated/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,17 @@ impl_accounts_helpers_for_parachain!(AssetHubWestend);
impl_assets_helpers_for_parachain!(AssetHubWestend, Westend);
impl_assert_events_helpers_for_parachain!(AssetHubWestend);

// PenpalPolkadot implementations
impl_assert_events_helpers_for_parachain!(PenpalPolkadotA);
impl_assert_events_helpers_for_parachain!(PenpalPolkadotB);

// PenpalKusama implementations
impl_assert_events_helpers_for_parachain!(PenpalKusamaA);
impl_assert_events_helpers_for_parachain!(PenpalKusamaB);

// PenpalWestendA implementation
impl_assert_events_helpers_for_parachain!(PenpalWestendA);

// Collectives implementation
impl_accounts_helpers_for_parachain!(Collectives);
impl_assert_events_helpers_for_parachain!(Collectives);
Expand Down

0 comments on commit 33046b6

Please sign in to comment.