Skip to content

Commit af01d86

Browse files
committed
fix(MongoInstance::_launchKiller): set "execArgv" to a empty array
to not re-execute any "--import"s fixes #912
1 parent 8156001 commit af01d86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/mongodb-memory-server-core/src/util/MongoInstance.ts

+1
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ export class MongoInstance extends EventEmitter implements ManagerBase {
538538
path.resolve(__dirname, '../../scripts/mongo_killer.js'),
539539
[parentPid.toString(), childPid.toString()],
540540
{
541+
execArgv: [],
541542
detached: true,
542543
stdio: 'ignore', // stdio cannot be done with an detached process cross-systems and without killing the fork on parent termination
543544
}

0 commit comments

Comments
 (0)