Skip to content

Commit d0100f7

Browse files
committed
chore: add a unique id per logger
1 parent ab9cd6c commit d0100f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: test/tools/runner/config.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
HostAddress,
1212
MongoClient,
1313
type MongoClientOptions,
14+
ObjectId,
1415
type ServerApi,
1516
TopologyType,
1617
type WriteConcernSettings
@@ -448,7 +449,8 @@ export class TestConfiguration {
448449
'CSOT spec tests legacy timeouts behave correctly for retryable operations operation succeeds after one socket timeout - aggregate on collection'
449450
];
450451

451-
setupLogging(options: MongoClientOptions, s: string = '') {
452+
setupLogging(options: MongoClientOptions, s?: string) {
453+
s ??= new ObjectId().toString();
452454
this.logs = [];
453455
const write = log => this.logs.push({ t: log.t, s, ...log });
454456
options.mongodbLogPath = { write };

0 commit comments

Comments
 (0)