Skip to content

Commit cee115c

Browse files
committed
debug: fix benchmark
1 parent 0525276 commit cee115c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pallets/parachain-staking/src/benchmarking.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ benchmarks! {
234234

235235
set_total_selected {
236236
Pallet::<T>::set_blocks_per_round(RawOrigin::Root.into(), 100u32)?;
237-
}: _(RawOrigin::Root, 100u32)
237+
}: _(RawOrigin::Root, 99u32)
238238
verify {
239-
assert_eq!(Pallet::<T>::total_selected(), 100u32);
239+
assert_eq!(Pallet::<T>::total_selected(), 99u32);
240240
}
241241

242242
set_collator_commission {
@@ -800,7 +800,7 @@ benchmarks! {
800800
// To set total selected to 40, must first increase round length to at least 40
801801
// to avoid hitting RoundLengthMustBeAtLeastTotalSelectedCollators
802802
Pallet::<T>::set_blocks_per_round(RawOrigin::Root.into(), 100u32)?;
803-
Pallet::<T>::set_total_selected(RawOrigin::Root.into(), 100u32)?;
803+
Pallet::<T>::set_total_selected(RawOrigin::Root.into(), 99u32)?;
804804
// INITIALIZE COLLATOR STATE
805805
let mut collators: Vec<T::AccountId> = Vec::new();
806806
let mut collator_count = 1u32;

0 commit comments

Comments
 (0)