Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TarekkMA committed Jan 22, 2025
1 parent ebc7469 commit 1541ea4
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions pallets/moonbeam-foreign-assets/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,30 +161,6 @@ fn test_asset_exists_error() {
});
}

#[test]
fn test_regular_user_cannot_call_some_extrinsics() {
ExtBuilder::default().build().execute_with(|| {
assert_noop!(
EvmForeignAssets::change_xcm_location(
RuntimeOrigin::signed(Bob.into()),
1,
Location::parent()
),
sp_runtime::DispatchError::BadOrigin
);

assert_noop!(
EvmForeignAssets::freeze_foreign_asset(RuntimeOrigin::signed(Bob.into()), 1, false),
sp_runtime::DispatchError::BadOrigin
);

assert_noop!(
EvmForeignAssets::unfreeze_foreign_asset(RuntimeOrigin::signed(Bob.into()), 1,),
sp_runtime::DispatchError::BadOrigin
);
});
}

#[test]
fn test_root_can_change_foreign_asset_for_asset_id() {
ExtBuilder::default()
Expand Down

0 comments on commit 1541ea4

Please sign in to comment.