Skip to content

Commit 0069873

Browse files
committed
test(NODE-3049): drivers atlas testing
1 parent f73d179 commit 0069873

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/tools/unified-spec-runner/operations.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
type Document,
1313
type GridFSFile,
1414
type MongoClient,
15+
MongoError,
1516
type ObjectId,
1617
ReadConcern,
1718
ReadPreference,
@@ -437,7 +438,8 @@ operations.set('loop', async ({ entities, operation, client, testConfig }) => {
437438
entities
438439
.getEntity('failures', storeFailuresAsEntity)
439440
.push({ error: error.message, time: Date.now() });
440-
} else if (storeErrorsAsEntity) {
441+
} else if (storeErrorsAsEntity && !(error instanceof MongoError)) {
442+
// Checking not a MongoError ensures it's coming from the test runner.
441443
entities
442444
.getEntity('errors', storeErrorsAsEntity)
443445
.push({ error: error.message, time: Date.now() });

0 commit comments

Comments
 (0)