Skip to content

Commit

Permalink
test: add api version when creating new test client (#3253)
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed May 18, 2022
1 parent a752e75 commit 55a2e45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/tools/runner/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ export class TestConfiguration {
dbOptions.loadBalanced = true;
}

if (process.env.MONGODB_API_VERSION) {
dbOptions.apiVersion = process.env.MONGODB_API_VERSION;
}

const urlOptions: url.UrlObject = {
protocol: 'mongodb',
slashes: true,
Expand Down

0 comments on commit 55a2e45

Please sign in to comment.