File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/mongodb-memory-server-core/src Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -479,14 +479,16 @@ export class MongoMemoryServer extends EventEmitter implements ManagerAdvanced {
479479 this . debug ( `_startUpInstance: Creating new MongoDB instance with options:` , mongodOptions ) ;
480480
481481 const instance = await MongoInstance . create ( mongodOptions ) ;
482- this . debug ( `_startUpInstance: Instance Started, createAuth: "${ createAuth } "` ) ;
483482
484483 this . _instanceInfo = {
485484 ...data ,
486485 dbPath : data . dbPath as string , // because otherwise the types would be incompatible
487486 instance,
488487 } ;
489488
489+ // log after "_instanceInfo" is set so that the port shows up in the message
490+ this . debug ( `_startUpInstance: Instance Started, createAuth: "${ createAuth } "` ) ;
491+
490492 // always set the "extraConnectionOptions" when "auth" is enabled, regardless of if "createAuth" gets run
491493 if (
492494 this . authObjectEnable ( ) &&
You can’t perform that action at this time.
0 commit comments