File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/mongodb-memory-server-core/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -503,7 +503,7 @@ export class MongoMemoryReplSet extends EventEmitter implements ManagerAdvanced
503503 log ( 'stop: state is "stopped", trying to stop / kill anyway' ) ;
504504 }
505505
506- const bool = await Promise . all ( this . servers . map ( ( s ) => s . stop ( false ) ) )
506+ const successfullyStopped = await Promise . all ( this . servers . map ( ( s ) => s . stop ( false ) ) )
507507 . then ( ( ) => {
508508 this . stateChange ( MongoMemoryReplSetStates . stopped ) ;
509509
@@ -517,8 +517,8 @@ export class MongoMemoryReplSet extends EventEmitter implements ManagerAdvanced
517517 } ) ;
518518
519519 // return early if the instances failed to stop
520- if ( ! bool ) {
521- return bool ;
520+ if ( ! successfullyStopped ) {
521+ return false ;
522522 }
523523
524524 if ( cleanup . doCleanup ) {
You can’t perform that action at this time.
0 commit comments