From 34888deedd097e65ff3400b559d3b1ea1c2299c7 Mon Sep 17 00:00:00 2001 From: Dino Pacandi Date: Tue, 16 Jan 2024 17:29:16 +0100 Subject: [PATCH] Additional check --- pallets/dapp-staking-v3/src/test/testing_utils.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pallets/dapp-staking-v3/src/test/testing_utils.rs b/pallets/dapp-staking-v3/src/test/testing_utils.rs index c756a44022..4a892bf44d 100644 --- a/pallets/dapp-staking-v3/src/test/testing_utils.rs +++ b/pallets/dapp-staking-v3/src/test/testing_utils.rs @@ -1370,6 +1370,11 @@ pub(crate) fn assert_block_bump(pre_snapshot: &MemorySnapshot) { assert_eq!(post_marker.oldest_valid_era, oldest_valid_era); assert_eq!(post_marker.dapp_tiers_index, pre_marker.dapp_tiers_index); assert_eq!(post_marker.era_reward_index, pre_marker.era_reward_index); + + assert!( + !post_snapshot.period_end.contains_key(&expired_period), + "Expired entry should have been removed." + ); } else { assert_eq!(pre_marker, post_marker, "Must remain unchanged."); }