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 flake TestIngressConnCount #3799

Merged
merged 1 commit into from
Mar 13, 2025
Merged

Conversation

yacovm
Copy link
Contributor

@yacovm yacovm commented Mar 13, 2025

Why this should be merged

The test spawns three instances of test network one after the other. In an overwhelming number of cases, they connect to each other according to their order of creation.

However, in some rare cases, they connect to each other out of order.

I made the test use set semantics instead of list semantics in order to not rely on their order of creation.

How this works

Unit test flake fix

How this was tested

Hopefully it won't flake in CI anymore

Need to be documented in RELEASES.md?

No.

The test spawns three instances of test network one after the other.
In an overwhelming number of cases, they connect to each other according to their order of creation.

However, in some rare cases, they connect to each other out of order.

I made the test use set semantics instead of list semantics in order to not rely on their order
of creation.

Signed-off-by: Yacov Manevich <yacov.manevich@avalabs.org>
@StephenButtolph StephenButtolph added this pull request to the merge queue Mar 13, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 13, 2025
@StephenButtolph StephenButtolph added this pull request to the merge queue Mar 13, 2025
Merged via the queue into ava-labs:master with commit 618a6f8 Mar 13, 2025
23 checks passed
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.

flake: network/network_test.go:TestIngressConnCount flakes on macos runner
3 participants