Skip to content

Commit

Permalink
[Fix] Config : don't clobber existing failure-persistence config duri…
Browse files Browse the repository at this point in the history
…ng contextualization
  • Loading branch information
matthew-russo committed Feb 18, 2024
1 parent b712538 commit 33b1c25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions proptest/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
- Setting `PROPTEST_MAX_DEFAULT_SIZE_RANGE` now customizes the default `SizeRange`
used by the default strategies for collections (like `Vec`). The default remains 100.

### Bug Fixes
- Fixed issue where config contextualization would clobber existing failure persistence config

## 1.4.0

### Breaking Changes
Expand Down
4 changes: 0 additions & 4 deletions proptest/src/test_runner/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ use std::str::FromStr;
use crate::test_runner::result_cache::{noop_result_cache, ResultCache};
use crate::test_runner::rng::RngAlgorithm;
use crate::test_runner::FailurePersistence;
#[cfg(feature = "std")]
use crate::test_runner::FileFailurePersistence;

#[cfg(feature = "std")]
const CASES: &str = "PROPTEST_CASES";
Expand Down Expand Up @@ -80,8 +78,6 @@ pub fn contextualize_config(mut result: Config) -> Config {
}
}

result.failure_persistence =
Some(Box::new(FileFailurePersistence::default()));
for (var, value) in
env::vars_os().filter_map(|(k, v)| k.into_string().ok().map(|k| (k, v)))
{
Expand Down

0 comments on commit 33b1c25

Please sign in to comment.