Skip to content

Commit

Permalink
Add additional assertion in staking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AdaJane authored and atodorov committed Mar 16, 2023
1 parent 968e59c commit b54a36e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/src/tests/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ fn stake_and_unstake_with_a_controller_and_stash_as_payee() {
));

// stake is found and usable balance dropped
assert_eq!(value, Staking::total_stake(&stash).unwrap());
assert_eq!(value, Staking::active_stake(&stash).unwrap());
let usable = Balances::usable_balance(&stash);
assert_eq!(0, usable);
Expand Down

0 comments on commit b54a36e

Please sign in to comment.