Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: simplify assert/require shrink test #8634

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

grandizzy
Copy link
Collaborator

@grandizzy grandizzy commented Aug 9, 2024

Motivation

failures from #4438 (comment) are caused by test_invariant_assert_shrink being SIGed and not STDERR failures,

 TRY 3 SIG 7 [   1.084s] forge::it invariant::test_invariant_assert_shrink

which likely is caused by running it with default runs / depth of 500.
Since test was introduced to make sure asserts in invariant tests are treated the same as requires (and therefore can shrink to same len - see #6683 (comment)) we can simplify the test and reduce to 1 run and depth of 15

Solution

@grandizzy grandizzy merged commit f6c6b35 into foundry-rs:master Aug 9, 2024
20 checks passed
@grandizzy grandizzy deleted the reduce-invariant-runs branch August 9, 2024 13:35
benwjhack pushed a commit to CompassLabs/foundry-test that referenced this pull request Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants