mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-25 13:15:02 +00:00
1 parent
9164cde499
commit
de5fc56f6c
1 file changed
+1
-1
@@ -45,7 +45,7 @@ fn force_unstake_works() {
|
||||
// Force unstake requires root.
|
||||
assert_noop!(Staking::force_unstake(Origin::signed(11), 11, 2), BadOrigin);
|
||||
// Force unstake needs correct number of slashing spans (for weight calculation)
|
||||
assert_noop!(Staking::force_unstake(Origin::signed(11), 11, 0), BadOrigin);
|
||||
assert_noop!(Staking::force_unstake(Origin::root(), 11, 0), Error::<Test>::IncorrectSlashingSpans);
|
||||
// We now force them to unstake
|
||||
assert_ok!(Staking::force_unstake(Origin::root(), 11, 2));
|
||||
// No longer bonded.
|
||||
|
||||
Reference in new issue
Block a user