Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nuel77 committed Apr 29, 2024
1 parent 0f85977 commit d88e09a
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions pallets/ocex/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1509,15 +1509,13 @@ fn test_deposit_account_not_registered() {
let account_id = create_account_id();
new_test_ext().execute_with(|| {
assert_ok!(OCEX::set_exchange_state(RuntimeOrigin::root(), true));
allowlist_token(AssetId::Asset(10));
assert_noop!(
OCEX::deposit(
RuntimeOrigin::signed(account_id.clone().into()),
AssetId::Asset(10),
100_u128.into()
),
Error::<Test>::AccountNotRegistered
);
mint_into_account(account_id.clone());
assert_ok!(OCEX::allowlist_token(RuntimeOrigin::root(), AssetId::Polkadex));
assert_ok!(OCEX::deposit(
RuntimeOrigin::signed(account_id.clone().into()),
AssetId::Polkadex,
100_u128.into()
));
});
}

Expand Down

0 comments on commit d88e09a

Please sign in to comment.