Skip to content

Commit a434d6e

Browse files
committed
explicitly always set appName: use value when specified, create a new unique one otherwise
1 parent 55ec289 commit a434d6e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ export class UnifiedMongoClient extends MongoClient {
267267

268268
if (description.uriOptions && description.uriOptions.appName) {
269269
options.appName = description.uriOptions.appName;
270+
} else {
271+
const appNameNonce = new Date().getTime().toString();
272+
options.appName = `unified-spec-runner-${appNameNonce}`;
270273
}
271274

272275
super(uri, options);

0 commit comments

Comments
 (0)