diff --git a/test/tools/runner/config.ts b/test/tools/runner/config.ts index 993de18a0f..5b87809d2f 100644 --- a/test/tools/runner/config.ts +++ b/test/tools/runner/config.ts @@ -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,