-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
Node forking will include any --import
from the original command
#912
Comments
This seems to be because
|
🎉 This issue has been resolved in version 10.1.4-beta.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
@orimdominic could you test |
Just seeing this. |
Hi @hasezoey! See https://github.com/orimdominic/nodejs-test-runner-mongoose/tree/mms-10-test |
🎉 This issue has been resolved in version 10.1.4 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Versions
package: mongo-memory-server-core
What is the Problem?
It seems like when we do
child_process.fork
now, it implies--import PRELOAD
if the original process has been started with--import
, like in the following example.This causes the
PRELOAD
to be re-executed upon forking to thekiller_script
, causing a infinite loop of starting and never cleaning-up extra mongo servers.see #907 (comment)
Code Example
Execute with:
Debug Output
no output by default as we disable stdio for the forked process
Do you know why it happenes?
Yes, as described above.
The text was updated successfully, but these errors were encountered: