Skip to content

ci: Fix call didn't revert at a lower depth than cheatcode call depth forge error in EVM tests#591

Merged
nvsriram merged 1 commit intomainfrom
ci/fix-foundry-v1-test-issue
Feb 22, 2025
Merged

ci: Fix call didn't revert at a lower depth than cheatcode call depth forge error in EVM tests#591
nvsriram merged 1 commit intomainfrom
ci/fix-foundry-v1-test-issue

Conversation

@nvsriram
Copy link
Copy Markdown
Contributor

With Foundry v1 release, some forge tests have been failing with this error.
This PR fixes this by adding /// forge-config: default.allow_internal_expect_revert = true above the test function.

See https://book.getfoundry.sh/cheatcodes/expect-revert#description for reference:

Selectively by using an inline configuration entry where it is DEEMED SAFE:
Add /// forge-config: default.allow_internal_expect_revert = true above the test function.

@nvsriram nvsriram requested review from djb15 and nonergodic February 21, 2025 20:32
Copy link
Copy Markdown
Contributor

@kcsongor kcsongor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@nvsriram nvsriram merged commit 2d402b9 into main Feb 22, 2025
@nvsriram nvsriram deleted the ci/fix-foundry-v1-test-issue branch February 22, 2025 01:13
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.

4 participants