Skip to content

test: add api version when creating new test client #3253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 18, 2022

Conversation

durran
Copy link
Member

@durran durran commented May 18, 2022

Description

CMAP spec tests were validly failing on CI when ran in the versioned api suite

What is changing?

Adds the apiVersion to the MongoClient when creating a new client from the test config via newClient() when MONGODB_API_VERSION is in the env. Should cover all cases for futureproofing.

Is there new documentation needed for these changes?

None

What is the motivation for this change?

Red build.

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: <type>(NODE-xxxx)<!>: <description>
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@durran durran marked this pull request as ready for review May 18, 2022 17:41
@baileympearson baileympearson merged commit 55a2e45 into main May 18, 2022
@baileympearson baileympearson deleted the fix-cmap-versioned-api branch May 18, 2022 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants