We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 0a213dd commit d32aec1Copy full SHA for d32aec1
packages/mongodb-memory-server-core/src/MongoMemoryReplSet.ts
@@ -171,10 +171,8 @@ export default class MongoMemoryReplSet extends EventEmitter {
171
return this._initServer(this.getInstanceOpts(opts));
172
});
173
const cnt = this.opts.replSet.count || 1;
174
- /** For extra logging */
175
- const current = 0;
176
while (servers.length < cnt) {
177
- log(` starting server ${current} of ${cnt}...`);
+ log(` starting server ${servers.length + 1} of ${cnt}...`);
178
const server = this._initServer(this.getInstanceOpts({}));
179
servers.push(server);
180
}
0 commit comments