Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
eskimor committed Jun 5, 2024
1 parent e6b338c commit 46219f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system-parachains/coretime/coretime-kusama/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ fn bulk_revenue_is_burnt() {
let broker_account = BrokerPalletId::get().into_account_truncating();
let coretime_burn_account = CoretimeBurnAccount::get();
let treasury_account = xcm_config::RelayTreasuryPalletAccount::get();
assert_ok!(Balances::mint_into(&AccountId::from(ALICE), 10 * ed));
assert_ok!(Balances::mint_into(&AccountId::from(ALICE), 100 * ed));
let alice_balance_before = Balances::balance(&AccountId::from(ALICE));
let treasury_balance_before = Balances::balance(&treasury_account);
let broker_balance_before = Balances::balance(&broker_account);
let burn_balance_before = Balances::balance(&coretime_burn_account);

// Purchase coretime.
assert_ok!(Broker::purchase(RuntimeOrigin::signed(AccountId::from(ALICE)), 5 * ed));
assert_ok!(Broker::purchase(RuntimeOrigin::signed(AccountId::from(ALICE)), 50 * ed));

// Alice decreases.
assert!(Balances::balance(&AccountId::from(ALICE)) < alice_balance_before);
Expand Down

0 comments on commit 46219f8

Please sign in to comment.