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

Jest detects open handles on queue.add() #189

Open
glhrmv opened this issue Jul 3, 2023 · 0 comments
Open

Jest detects open handles on queue.add() #189

glhrmv opened this issue Jul 3, 2023 · 0 comments

Comments

@glhrmv
Copy link

glhrmv commented Jul 3, 2023

Hi all, I'm writing some unit tests for a class that uses a PQueue internally (to manage HTTP requests to be made) and I've been getting the following error after every test run:

Jest has detected the following 1 open handle potentially keeping Jest from exiting:

Jest points to a particular culprit function call which is the queue.add() method.

I've tried to do a .clear() of the internal queue after each test runs but got no luck there, for reasons unknown to me.
Is this an issue with the library or am I doing something wrong?

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

No branches or pull requests

1 participant