Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

fix: use unref on setInterval to stop tests from hanging - #599

Merged
hf merged 1 commit into
masterfrom
hf/fix-use-ticker-unref-on-set-interval
Jan 31, 2023
Merged

hf merged 1 commit into
masterfrom
hf/fix-use-ticker-unref-on-set-interval

Conversation

@hf

@hf hf commented Jan 31, 2023 •

Copy link
Copy Markdown
Contributor

In #564 setInterval started being used, however the existence of this type of object marks a NodeJS process as never finished which makes tests hang. By calling Timeout#unref() the interval will continue to run but not hang the process.

Fixes #597.

@hf
hf merged commit 1d8df28 into master Jan 31, 2023
@hf
hf deleted the hf/fix-use-ticker-unref-on-set-interval branch January 31, 2023 12:37
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.10.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

client hangs after upgrade to v2.10.0

2 participants