Skip to content

test: Fix flakey integration test #13253

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

Merged
merged 2 commits into from
Aug 6, 2024
Merged

test: Fix flakey integration test #13253

merged 2 commits into from
Aug 6, 2024

Conversation

lforst
Copy link
Contributor

@lforst lforst commented Aug 6, 2024

@lforst lforst requested a review from mydea August 6, 2024 12:21
@lforst lforst requested a review from a team as a code owner August 6, 2024 14:41
@lforst lforst enabled auto-merge (squash) August 6, 2024 14:52
@lforst lforst merged commit 8fb3f24 into develop Aug 6, 2024
221 of 223 checks passed
@lforst lforst deleted the fix-flaky-test branch August 6, 2024 14:52
mydea added a commit that referenced this pull request Aug 12, 2024
This PR streamlines and fixes some timing/cleanup issues we had in
integration tests, which sometimes lead to issues.

One problem was introduced here:
#13253

This change lead to the server being shut down (because `done` is
called) before the HTTP requests are finished, leading to error logs.

Another problem was that in some cases we had leaking processes, where
we did not properly close servers we started - this was everywhere we
used `createTestServer`.

I also moved some code from the node-integration-tests package to the
remix package, that was only used there (and not properly
depended/imported on).

For future debugging, this was shown by running tests with
`--detectOpenHandles`.
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.

2 participants