Skip to content

Commit 7cdb6ac

Browse files
committed
pick up appName and appname from tests
1 parent a434d6e commit 7cdb6ac

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,12 @@ export class UnifiedMongoClient extends MongoClient {
265265
};
266266
}
267267

268-
if (description.uriOptions && description.uriOptions.appName) {
269-
options.appName = description.uriOptions.appName;
268+
// Test descriptions use `appName` and `appname` interchangeably
269+
if (
270+
description.uriOptions &&
271+
(description.uriOptions.appName != null || description.uriOptions.appname != null)
272+
) {
273+
options.appName = description.uriOptions.appName ?? description.uriOptions.appname;
270274
} else {
271275
const appNameNonce = new Date().getTime().toString();
272276
options.appName = `unified-spec-runner-${appNameNonce}`;

0 commit comments

Comments
 (0)