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: flaky test #262

Merged
merged 7 commits into from
Sep 17, 2024
Merged

fix: flaky test #262

merged 7 commits into from
Sep 17, 2024

Conversation

Mohiiit
Copy link
Contributor

@Mohiiit Mohiiit commented Sep 13, 2024

There were flaky tests in gas price worker because of the anvil instance, now each test has it's own anvil instance, it's not super beautiful but it works :) and it's stable (I hope)

Pull Request type

Please add the labels corresponding to the type of changes your PR introduces:

  • Code style update (formatting, renaming)
  • Test

What is the current behavior?

In current case we launch an anvil instance and this is shared among tests. Because of the rust lifetimes, sometimes the anvil instance get out of scope before each test runs.

This was adopted because it was a code repetition.

Resolves: #NA

What is the new behavior?

  • each test has it's own anvil instance

Does this introduce a breaking change?

No

@Mohiiit Mohiiit self-assigned this Sep 13, 2024
@Mohiiit Mohiiit added the bug Something isn't working label Sep 13, 2024
@Mohiiit Mohiiit marked this pull request as ready for review September 17, 2024 10:22
@Mohiiit Mohiiit requested review from antiyro, apoorvsadana and ocdbytes and removed request for apoorvsadana September 17, 2024 10:23
Copy link
Member

@antiyro antiyro left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@ocdbytes ocdbytes left a comment

Choose a reason for hiding this comment

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

lgtm 🚀

@ocdbytes ocdbytes merged commit e6531e8 into main Sep 17, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants