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 1565d35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/tools/unified-spec-runner/entity_event_registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const MAPPINGS = {

/**
* Registers events that need to be stored in the entities map, since
* the UnifiedMongoClient does not contain a ciclical dependency on the
* the UnifiedMongoClient does not contain a cyclical dependency on the
* entities map itself.
*/
export class EntityEventRegistry {
Expand Down
4 changes: 3 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,8 @@ 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)) {
// 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 1565d35

Please sign in to comment.