-
Notifications
You must be signed in to change notification settings - Fork 657
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
Failure when using in more than one jest suite #449
Comments
What is the test runner you are using? |
A default one, |
I believe this to be the culprit: tensorflow/tfjs#540 |
We were already using |
After a little bit longer investigation, it seems that I've wanted to use In the end, the |
Ty for the update. We will continue to investigate this issue in headless-gl. |
I've added a usage of GPU.js to my code and found out that some of my tests started to fail. It looks that only the first jest suite is behaving correctly in tests, and the subsequent ones, despite the cleanup, are failing with error:
I've reproduced it only in Jest for now. Also, note that there can be multiple instances of GPU in one jest suite and it works just fine, the problem is to create GPU.js instance in two different suites. I'm not sure what exactly jest is using internally (some threads maybe?), but it would be nice to get some guidelines how to fix that.
I've prepared minimal reproduction repository here: https://github.com/swistak35/gpu-js-fail-example
The text was updated successfully, but these errors were encountered: