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

fix(tests): Conform to upcoming expectRevert behavior #379

Merged
merged 10 commits into from
Jun 26, 2023

Conversation

Evalir
Copy link
Member

@Evalir Evalir commented May 15, 2023

Followup to foundry-rs/foundry#4945

The new expectRevert behavior means that it will only check the next call, instead of checking a revert at the "test" level. Some of the tests in forge-std expected the latter behavior, but with the linked PR this will change. This updates the tests to comply to the new behavior.

test/StdChains.t.sol Outdated Show resolved Hide resolved
@Evalir
Copy link
Member Author

Evalir commented Jun 12, 2023

Should be good to go now! @mds1

@Evalir Evalir requested a review from mds1 June 20, 2023 17:05
Copy link
Collaborator

@mds1 mds1 left a comment

Choose a reason for hiding this comment

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

Sorry missed that this was ready, thanks @Evalir! Looks like CI is passing—am I correct that this can be merged now (without waiting for v1 release) since this fix is compatible both with current and future (v1) expectRevert behavior?

@Evalir
Copy link
Member Author

Evalir commented Jun 25, 2023

Yep indeed can be merged now!

Copy link
Collaborator

@mds1 mds1 left a comment

Choose a reason for hiding this comment

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

Thank you!

@mds1 mds1 merged commit 5086c7a into foundry-rs:master Jun 26, 2023
@Evalir Evalir deleted the evalir/fix_revert_test branch June 26, 2023 03:17
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