Skip to content

Commit d05c33e

Browse files
authored
DRIVERS-3108 skip non-LB test on >=8.1 server (#1758)
1 parent 585b797 commit d05c33e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

source/load-balancers/tests/non-lb-connection-establishment.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/load-balancers/tests/non-lb-connection-establishment.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ tests:
4242
# If the server is not configured to be behind a load balancer and the URI contains loadBalanced=true, the driver
4343
# should error during the connection handshake because the server's hello response does not contain a serviceId field.
4444
- description: operations against non-load balanced clusters fail if URI contains loadBalanced=true
45+
runOnRequirements:
46+
- maxServerVersion: 8.0.99 # DRIVERS-3108: Skip test on >=8.1 mongod. SERVER-85804 changes a non-LB mongod to close connection.
47+
topologies: [ single ]
48+
- topologies: [ sharded ]
49+
4550
operations:
4651
- name: runCommand
4752
object: *lbTrueDatabase

0 commit comments

Comments
 (0)