Skip to content

Commit

Permalink
Expand test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Jan 15, 2024
1 parent 135e18c commit bc97f23
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pallets/dapps-staking/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2173,11 +2173,18 @@ fn decommision_is_ok() {
DappsStaking::withdraw_unbonded(RuntimeOrigin::signed(account)),
Error::<TestRuntime>::NothingToWithdraw
);
assert_noop!(
DappsStaking::set_reward_destination(
RuntimeOrigin::signed(account),
RewardDestination::StakeBalance
),
Error::<TestRuntime>::NotActiveStaker
);
})
}

#[test]
fn no_era_change_during_decommision() {
fn no_era_change_during_decommission() {
ExternalityBuilder::build().execute_with(|| {
initialize_first_block();

Expand Down

0 comments on commit bc97f23

Please sign in to comment.