Skip to content

Conversation

jyemin
Copy link
Collaborator

@jyemin jyemin commented May 1, 2024

  • Remove branching code in the driver based on 3.6 version checks
  • Remove testing of 3.6
  • Clean up tests

JAVA-5294

Let me know if I was too aggressive on the test cleanup. None of it is strictly necessary, but it feels tidier.

* Remove branching code in the driver based on 3.6 version checks * Remove testing of 3.5 * Clean up tests JAVA-5294
@jyemin jyemin self-assigned this May 1, 2024
@jyemin jyemin requested a review from rozza May 1, 2024 18:09
Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jyemin jyemin requested a review from rozza May 2, 2024 13:54
@jyemin
Copy link
Collaborator Author

jyemin commented May 2, 2024

@rozza in my final checks before merging I found a few more places that needed updating

Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question

import static com.mongodb.connection.ClusterConnectionMode.MULTIPLE
import static com.mongodb.connection.ClusterConnectionMode.SINGLE
import static com.mongodb.internal.operation.ServerVersionHelper.LATEST_WIRE_VERSION
import static com.mongodb.internal.operation.ServerVersionHelper.THREE_DOT_SIX_WIRE_VERSION
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is ServerVersionHelper.THREE_DOT_SIX_WIRE_VERSION needed anymore?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was just used in a few tests, so I replaced all usages with LATEST_WIRE_VERSION and removed it.

@jyemin jyemin requested a review from rozza May 2, 2024 15:33
Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jyemin jyemin merged commit 330d3b1 into mongodb:master May 3, 2024
@jyemin jyemin deleted the JAVA-5294 branch May 3, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants