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 232cec0 commit e48f2aaCopy full SHA for e48f2aa
packages/mongodb-memory-server-core/src/util/MongoInstance.ts
@@ -464,7 +464,10 @@ export class MongoInstance extends EventEmitter implements ManagerBase {
464
!(
465
err instanceof MongoNetworkError &&
466
/^connection \d+ to [\d.]+:\d+ closed$/i.test(err.message)
467
- )
+ ) &&
468
+ // "Connection Reset" may happen in the middle of the operation, for whatever reason before the command finishes,
469
+ // this is not a error we need to log. (re https://github.com/typegoose/mongodb-memory-server/issues/900)
470
+ !(err instanceof Error && 'read ECONNRESET' === err.message)
471
) {
472
console.warn(err);
473
}
0 commit comments