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: migrate E2E wineOilMarket tests to Foundry #214

Merged

Conversation

meetmangukiya
Copy link

@meetmangukiya meetmangukiya commented Sep 8, 2024

Description

Migrate wineOilMarket e2e test to foundry. Depends on #215 for the ForkedTest.t.sol.

Test Plan

CI

Related Issues

Closes #143

@meetmangukiya meetmangukiya requested a review from a team as a code owner September 8, 2024 05:32
Copy link
Contributor

@fedgiac fedgiac left a comment

Choose a reason for hiding this comment

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

The migrated test looks good, just a few comments on keeping the code easier to maintain in the future.

test/e2e/WineOilMarket.t.sol Outdated Show resolved Hide resolved
test/e2e/WineOilMarket.t.sol Outdated Show resolved Hide resolved
test/e2e/WineOilMarket.t.sol Outdated Show resolved Hide resolved
test/src/NonStandardERC20.sol Outdated Show resolved Hide resolved
test/e2e/WineOilMarket.t.sol Outdated Show resolved Hide resolved
tokens[1] = oil;
tokens[2] = wine;
uint256[] memory prices = new uint256[](3);
prices[0] = 1 ether;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: for readability, maybe allocate to a variable per oilPrice and winePrice unless there's stack too deep issues.

Copy link
Author

Choose a reason for hiding this comment

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

i dont understand what you mean

Copy link
Contributor

Choose a reason for hiding this comment

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

It is odd to have oilPrice and winePrice and not have eurPrice. So, at LN108 I'd suggest adding a eurPrice variable.

@mfw78 mfw78 changed the base branch from main to e2e-migration October 7, 2024 10:58
@mfw78 mfw78 force-pushed the e2e-migrate-wineOilMarket branch from 3f45967 to 9fed3fc Compare October 7, 2024 11:01
@mfw78 mfw78 merged commit 9225dff into cowprotocol:e2e-migration Oct 7, 2024
9 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests(e2e): wineOilMarket
3 participants