File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/mongodb-memory-server-core/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -174,12 +174,12 @@ export default class MongoMemoryReplSet extends EventEmitter {
174174 // the `replSetInitiate` command against that server.
175175 const servers = this . opts . instanceOpts . map ( ( opts ) => {
176176 this . debug ( ' starting server from instanceOpts:' , opts , '...' ) ;
177- return this . _startServer ( this . getInstanceOpts ( opts ) ) ;
177+ return this . _initServer ( this . getInstanceOpts ( opts ) ) ;
178178 } ) ;
179179 const cnt = this . opts . replSet . count || 1 ;
180180 while ( servers . length < cnt ) {
181- this . debug ( ' starting a server due to count ...' ) ;
182- const server = this . _startServer ( this . getInstanceOpts ( { } ) ) ;
181+ this . debug ( ` starting ${ cnt } servers ...` ) ;
182+ const server = this . _initServer ( this . getInstanceOpts ( { } ) ) ;
183183 servers . push ( server ) ;
184184 }
185185 // ensures all servers are listening for connection
@@ -262,7 +262,7 @@ export default class MongoMemoryReplSet extends EventEmitter {
262262 }
263263 }
264264
265- _startServer ( instanceOpts : MongoMemoryInstancePropT ) : MongoMemoryServer {
265+ _initServer ( instanceOpts : MongoMemoryInstancePropT ) : MongoMemoryServer {
266266 const serverOpts : MongoMemoryServerOptsT = {
267267 autoStart : false ,
268268 debug : this . opts . debug ,
You can’t perform that action at this time.
0 commit comments