Skip to content

Commit

Permalink
fix first test
Browse files Browse the repository at this point in the history
  • Loading branch information
saraswatpuneet committed Nov 21, 2024
1 parent 6ef5f8b commit 1abd5e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/capacity/src/tests/stake_and_deposit_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ fn stake_when_staking_amount_is_greater_than_free_balance_it_stakes_maximum() {
fn get_stakable_amount_for_works() {
new_test_ext().execute_with(|| {
let account = 200;
// An amount greater than the free balance
// An amount greater than the free balance should not be stakable
let amount = 230;
let res: u64 = Capacity::get_stakable_amount_for(&account, amount);
assert_eq!(res, 189);
assert_eq!(res, 0);
})
}

Expand Down

0 comments on commit 1abd5e5

Please sign in to comment.