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 a634bb7 commit 704bc64Copy full SHA for 704bc64
packages/mongodb-memory-server-core/src/util/MongoInstance.ts
@@ -334,7 +334,7 @@ export class MongoInstance extends EventEmitter implements ManagerBase {
334
const launch: Promise<void> = new Promise((res, rej) => {
335
this.once(MongoInstanceEvents.instanceReady, res);
336
this.once(MongoInstanceEvents.instanceError, rej);
337
- this.once(MongoInstanceEvents.instanceClosed, () => {
+ this.once(MongoInstanceEvents.instanceClosed, function launchInstanceClosed() {
338
rej(new Error('Instance Exited before being ready and without throwing an error!'));
339
});
340
0 commit comments