Skip to content

Commit

Permalink
added check for events
Browse files Browse the repository at this point in the history
  • Loading branch information
asiniscalchi committed Oct 9, 2024
1 parent d78bba8 commit 27f7911
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xcm-simulator/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,11 @@ fn force_create_a_foreign_asset_in_para_b() {
));

assert_eq!(parachain::ForeignAssets::owner(para_a_native_asset_location), Some(ALICE));

assert!(parachain::System::events().iter().any(|r| matches!(
r.event,
parachain::RuntimeEvent::ForeignAssets(pallet_assets::Event::ForceCreated { .. })
)));
});
}

Expand Down

0 comments on commit 27f7911

Please sign in to comment.