-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
test: add more positive fuzz test cases #7101
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this interferes with an existing test
what do you think I should do |
do you think the failure here might be to race conditons |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the issue here is that these functions are being run in another test:
--- TRY 3 STDERR: forge::it fuzz::test_fuzz ---
thread 'fuzz::test_fuzz' panicked at crates\forge\tests\it\fuzz.rs:37:22:
Test testSuccessChecker(uint256) did not fail as expected.
Reason: None
Logs:
I think the best solution here would be to move the new tests to a new contract/file
ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nits
I think I've fixed it |
Co-authored-by: Oliver Nordbjerg <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
* changes * changes * proposed fix * format * fixed * Update crates/forge/tests/it/fuzz.rs Co-authored-by: Oliver Nordbjerg <[email protected]> --------- Co-authored-by: Oliver Nordbjerg <[email protected]>
Closes #971