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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use timeout instead of interval for releasing ports #68

Merged

Conversation

SamVerschueren
Copy link
Contributor

fixes #45

This PR switches from setInterval() to setTimeout(). It'll make sure that there isn't a timer running forever. Every time getPorts() is called, the timer is re-created.

I hope this logic is correct 馃檲

@sindresorhus sindresorhus merged commit bd8a403 into sindresorhus:main Jun 4, 2023
9 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.

Jest tests time out since 5.1.0
2 participants