Skip to content

Commit

Permalink
test(NODE-3049): drivers atlas testing
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Aug 30, 2023
1 parent f73d179 commit 9235cae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/tools/unified-spec-runner/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
type Document,
type GridFSFile,
type MongoClient,
MongoError,
type ObjectId,
ReadConcern,
ReadPreference,
Expand Down Expand Up @@ -437,7 +438,9 @@ operations.set('loop', async ({ entities, operation, client, testConfig }) => {
entities
.getEntity('failures', storeFailuresAsEntity)
.push({ error: error.message, time: Date.now() });
} else if (storeErrorsAsEntity) {
} else if (storeErrorsAsEntity && !(error instanceof MongoError)) {
console.log('error', error);
// Checking not a MongoError ensures it's coming from the test runner.
entities
.getEntity('errors', storeErrorsAsEntity)
.push({ error: error.message, time: Date.now() });
Expand Down

0 comments on commit 9235cae

Please sign in to comment.