Skip to content

Commit 55a2e45

Browse files
authored
test: add api version when creating new test client (#3253)
1 parent a752e75 commit 55a2e45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/tools/runner/config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ export class TestConfiguration {
198198
dbOptions.loadBalanced = true;
199199
}
200200

201+
if (process.env.MONGODB_API_VERSION) {
202+
dbOptions.apiVersion = process.env.MONGODB_API_VERSION;
203+
}
204+
201205
const urlOptions: url.UrlObject = {
202206
protocol: 'mongodb',
203207
slashes: true,

0 commit comments

Comments
 (0)