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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent e249542 commit 19e1f51
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
@@ -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);

0 comments on commit 19e1f51

Please sign in to comment.