Skip to content

Commit 7ca4247

Browse files
authored
Update tests.rs (#7784)
Fix testing for number of slashing spans.
1 parent 2098911 commit 7ca4247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fn force_unstake_works() {
4545
// Force unstake requires root.
4646
assert_noop!(Staking::force_unstake(Origin::signed(11), 11, 2), BadOrigin);
4747
// Force unstake needs correct number of slashing spans (for weight calculation)
48-
assert_noop!(Staking::force_unstake(Origin::signed(11), 11, 0), BadOrigin);
48+
assert_noop!(Staking::force_unstake(Origin::root(), 11, 0), Error::<Test>::IncorrectSlashingSpans);
4949
// We now force them to unstake
5050
assert_ok!(Staking::force_unstake(Origin::root(), 11, 2));
5151
// No longer bonded.

0 commit comments

Comments
 (0)