Skip to content
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

Do not perform server selection to determine sessions support #1092

Merged
merged 6 commits into from
Mar 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix tests
  • Loading branch information
jyemin committed Mar 2, 2023
commit 7e8951b29b1320f3719bdd2fd894107018186a42
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public void commandStarted(final CommandStartedEvent event) {

@Test
public void shouldIgnoreImplicitSessionIfConnectionDoesNotSupportSessions() throws IOException {
jyemin marked this conversation as resolved.
Show resolved Hide resolved
assumeTrue(serverVersionAtLeast(4, 2));
katcharov marked this conversation as resolved.
Show resolved Hide resolved
Process mongocryptdProcess = startMongocryptdProcess();
try {
AtomicBoolean containsLsid = new AtomicBoolean(true);
katcharov marked this conversation as resolved.
Show resolved Hide resolved
Expand Down Expand Up @@ -143,6 +144,7 @@ public void commandStarted(final CommandStartedEvent event) {

@Test
public void shouldThrowOnExplicitSessionIfConnectionDoesNotSupportSessions() throws IOException {
katcharov marked this conversation as resolved.
Show resolved Hide resolved
assumeTrue(serverVersionAtLeast(4, 2));
Process mongocryptdProcess = startMongocryptdProcess();
try {
katcharov marked this conversation as resolved.
Show resolved Hide resolved
try (MongoClient client = getMongoClient(getMongoCryptdMongoClientSettingsBuilder().build())) {
Expand Down