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

test(middleware): fix flapping gas oracle #514

Merged
merged 2 commits into from
Oct 16, 2021

Conversation

shekhirin
Copy link
Contributor

@shekhirin shekhirin commented Oct 16, 2021

Motivation

CI tests are flapping because gas price changes between retrieving from Gas Station as expected and using it in middleware.

Solution

Implement fake gas price oracle, so we can be sure price doesn't change during the test.

PR Checklist

  • Implement FakeGasOracle

@gakonst gakonst merged commit 956a87a into gakonst:master Oct 16, 2021
@gakonst
Copy link
Owner

gakonst commented Oct 16, 2021

Nice one! Thank you.

meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this pull request Mar 21, 2022
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.

None yet

2 participants