Skip to content

Commit 02228c3

Browse files
authored
fix: change "waiting for connections on port" to "waiting for connections"
* change "waiting for connections on port" to "waiting for connections" (regex) * remove unused import
1 parent 3ed31f6 commit 02228c3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/mongodb-memory-server-core/src/__tests__/replset-single-restart-test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import MongoMemoryReplSet, { MongoMemoryReplSetOptsT } from '../MongoMemoryReplSet';
22
import * as tmp from 'tmp';
3-
import getPort from 'get-port';
43

54
let tmpDir: tmp.DirResult;
65
beforeEach(() => {

packages/mongodb-memory-server-core/src/util/MongoInstance.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export default class MongoInstance {
249249
const line: string = message.toString();
250250
this.debug(`STDOUT: ${line}`);
251251

252-
if (/waiting for connections on port/i.test(line)) {
252+
if (/waiting for connections/i.test(line)) {
253253
this.instanceReady();
254254
} else if (/addr already in use/i.test(line)) {
255255
this.instanceFailed(`Port ${this.opts.instance.port} already in use`);

0 commit comments

Comments
 (0)