Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add another assert to benchmark verify
  • Loading branch information
apopiak committed Sep 15, 2023
commit 9f80070c5d5f8cefd2c39406286c72710f78041a
1 change: 1 addition & 0 deletions pallets/xcmp-queue/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ benchmarks! {
verify
{
assert_eq!(crate::Pallet::<T>::messages_deferred_to(para_id, (relay_block, 0)).len(), 0);
assert_eq!(crate::Pallet::<T>::deferred_indices(para_id).len(), max_buckets as usize - 1);
// worst case is placing the message in overweight, so check that they end up there
assert!(Overweight::<T>::contains_key(0));
assert!(Overweight::<T>::contains_key((max_messages - 1) as u64));
Expand Down