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: resolve a few issues with tests causing inconsistent results #5992

Merged
merged 2 commits into from
Jan 2, 2025

Conversation

mrstork
Copy link
Contributor

@mrstork mrstork commented Jan 2, 2025

Summary

  • Two of the tests were using runInstallFixture incorrectly causing a race condition where they were sometimes expecting the node_modules folder to exist before it did
  • One test was using getPort() without setting test.serial which causes a race condition when running tests in parallel. Occasionally the port retrieved would be retrieved by another test as well causing it to be in use already by the time it was needed.

@mrstork mrstork requested a review from a team as a code owner January 2, 2025 15:04
Copy link
Contributor

github-actions bot commented Jan 2, 2025

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

@mrstork mrstork added this pull request to the merge queue Jan 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 2, 2025
@mrstork mrstork added this pull request to the merge queue Jan 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 2, 2025
@mrstork mrstork added this pull request to the merge queue Jan 2, 2025
Merged via the queue into main with commit 15943ef Jan 2, 2025
33 checks passed
@mrstork mrstork deleted the resolve-flaky-tests branch January 2, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants