We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ed31f6 commit 02228c3Copy full SHA for 02228c3
packages/mongodb-memory-server-core/src/__tests__/replset-single-restart-test.ts
@@ -1,6 +1,5 @@
1
import MongoMemoryReplSet, { MongoMemoryReplSetOptsT } from '../MongoMemoryReplSet';
2
import * as tmp from 'tmp';
3
-import getPort from 'get-port';
4
5
let tmpDir: tmp.DirResult;
6
beforeEach(() => {
packages/mongodb-memory-server-core/src/util/MongoInstance.ts
@@ -249,7 +249,7 @@ export default class MongoInstance {
249
const line: string = message.toString();
250
this.debug(`STDOUT: ${line}`);
251
252
- if (/waiting for connections on port/i.test(line)) {
+ if (/waiting for connections/i.test(line)) {
253
this.instanceReady();
254
} else if (/addr already in use/i.test(line)) {
255
this.instanceFailed(`Port ${this.opts.instance.port} already in use`);
0 commit comments