Skip to content

Commit

Permalink
Additional check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Jan 16, 2024
1 parent 120c55d commit 34888de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pallets/dapp-staking-v3/src/test/testing_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
Expand Down

0 comments on commit 34888de

Please sign in to comment.