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

Ensure timely exit of process after test run finishes #29

Merged
merged 1 commit into from
Nov 8, 2023
Merged

Conversation

ejizba
Copy link
Contributor

@ejizba ejizba commented Nov 8, 2023

We already call process.exit if the test run failed (on line 43 which is cutoff in the diff), so I just updated the successful case to also call process.exit.

Related to #28, since this will force clean up anything that wasn't cleaned up yet. I simulated this on my local machine by temporarily removing the calls to client.close (since I couldn't actually repro the flaky timeouts on my local machine). Without my PR change the process will continue to run indefinitely because the clients are holding on to something (which is what leads to a timeout in a CI run) and with my PR change it exited immediately and worked great.

@ejizba ejizba requested a review from castrodd November 8, 2023 22:46
@ejizba ejizba merged commit bd876fe into main Nov 8, 2023
5 checks passed
@ejizba ejizba deleted the ej/end branch November 8, 2023 23:52
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