diff --git a/proptest/src/test_runner/runner.rs b/proptest/src/test_runner/runner.rs index d209dff6..a1af43ea 100644 --- a/proptest/src/test_runner/runner.rs +++ b/proptest/src/test_runner/runner.rs @@ -762,6 +762,16 @@ impl TestRunner { fork_output: &mut ForkOutput, is_from_persisted_seed: bool, ) -> Option { + // exit early if shrink disabled + if self.config.max_shrink_iters == 0 { + verbose_message!( + self, + INFO_LOG, + "Shrinking disabled by configuration" + ); + return None + } + #[cfg(feature = "std")] use std::time;