Skip to content

Commit 1565d35

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

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const MAPPINGS = {
4040

4141
/**
4242
* Registers events that need to be stored in the entities map, since
43-
* the UnifiedMongoClient does not contain a ciclical dependency on the
43+
* the UnifiedMongoClient does not contain a cyclical dependency on the
4444
* entities map itself.
4545
*/
4646
export class EntityEventRegistry {

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)