File tree 1 file changed +3
-2
lines changed
packages/mongodb-memory-server-core/src/util
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -345,6 +345,9 @@ export class MongoInstance extends EventEmitter implements ManagerBase {
345
345
346
346
let timeout : NodeJS . Timeout ;
347
347
348
+ const mongoBin = await MongoBinary . getPath ( this . binaryOpts ) ;
349
+ await checkBinaryPermissions ( mongoBin ) ;
350
+
348
351
const launch : Promise < void > = new Promise < void > ( ( res , rej ) => {
349
352
this . once ( MongoInstanceEvents . instanceReady , res ) ;
350
353
this . once ( MongoInstanceEvents . instanceError , rej ) ;
@@ -369,8 +372,6 @@ export class MongoInstance extends EventEmitter implements ManagerBase {
369
372
clearTimeout ( timeout ) ;
370
373
} ) ;
371
374
372
- const mongoBin = await MongoBinary . getPath ( this . binaryOpts ) ;
373
- await checkBinaryPermissions ( mongoBin ) ;
374
375
this . debug ( 'start: Starting Processes' ) ;
375
376
this . mongodProcess = this . _launchMongod ( mongoBin ) ;
376
377
// This assertion is here because somewhere between nodejs 12 and 16 the types for "childprocess.pid" changed to include "| undefined"
You can’t perform that action at this time.
0 commit comments