fix(storage): update proptest configuration for deterministic bench runs (#13580)

This commit is contained in:
Tien Dao
2024-12-31 01:06:22 +07:00
committed by GitHub
parent 00ad7f61d5
commit 0b598cf407

View File

@ -8,7 +8,7 @@ use criterion::{
use pprof::criterion::{Output, PProfProfiler};
use proptest::{
arbitrary::Arbitrary,
prelude::{any_with, ProptestConfig},
prelude::any_with,
strategy::{Strategy, ValueTree},
test_runner::TestRunner,
};
@ -164,7 +164,7 @@ where
.no_shrink()
.boxed();
let mut runner = TestRunner::new(ProptestConfig::default());
let mut runner = TestRunner::deterministic();
let mut preload = strategy.new_tree(&mut runner).unwrap().current();
let mut input = strategy.new_tree(&mut runner).unwrap().current();