Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 7 additions & 1 deletion crates/forge/tests/cli/test_cmd/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ Ran 1 test suite [ELAPSED]: 1 tests passed, 0 failed, 0 skipped (1 total tests)

forgetest_init!(test_fuzz_fail_on_revert, |prj, cmd| {
prj.wipe_contracts();
prj.update_config(|config| config.fuzz.fail_on_revert = false);
prj.update_config(|config| {
config.fuzz.fail_on_revert = false;
config.fuzz.seed = Some(U256::from(100u32));
});
prj.add_source(
"Counter.sol",
r#"
Expand Down Expand Up @@ -672,6 +675,9 @@ Ran 1 test suite [ELAPSED]: 3 tests passed, 0 failed, 0 skipped (3 total tests)
// random values (instead edge cases) are generated if no fixtures defined
forgetest_init!(fuzz_uint, |prj, cmd| {
prj.wipe_contracts();
prj.update_config(|config| {
config.fuzz.seed = Some(U256::from(100u32));
});
prj.add_test(
"FuzzUint.t.sol",
r#"
Expand Down
1 change: 1 addition & 0 deletions crates/forge/tests/cli/test_cmd/invariant/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,7 @@ forgetest_init!(invariant_scrape_values, |prj, cmd| {
prj.wipe_contracts();
prj.update_config(|config| {
config.invariant.depth = 10;
config.fuzz.seed = Some(U256::from(100u32));
});

prj.add_test(
Expand Down
Loading