From bc97f23844a5205f65f3d28c7fa093adaa56aacc Mon Sep 17 00:00:00 2001 From: Dino Pacandi Date: Mon, 15 Jan 2024 15:23:13 +0100 Subject: [PATCH] Expand test --- pallets/dapps-staking/src/tests.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pallets/dapps-staking/src/tests.rs b/pallets/dapps-staking/src/tests.rs index a9bf20964f..5b53ea6ec3 100644 --- a/pallets/dapps-staking/src/tests.rs +++ b/pallets/dapps-staking/src/tests.rs @@ -2173,11 +2173,18 @@ fn decommision_is_ok() { DappsStaking::withdraw_unbonded(RuntimeOrigin::signed(account)), Error::::NothingToWithdraw ); + assert_noop!( + DappsStaking::set_reward_destination( + RuntimeOrigin::signed(account), + RewardDestination::StakeBalance + ), + Error::::NotActiveStaker + ); }) } #[test] -fn no_era_change_during_decommision() { +fn no_era_change_during_decommission() { ExternalityBuilder::build().execute_with(|| { initialize_first_block();