PYTHON-3652 Bump maxWireVersion for MongoDB 7.0 (#1188)

This commit is contained in:
Steven Silvester 2023-04-12 10:40:44 -05:00 committed by GitHub
parent 9256cb20af
commit f7225fda55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@ MAX_WRITE_BATCH_SIZE = 1000
# What this version of PyMongo supports.
MIN_SUPPORTED_SERVER_VERSION = "3.6"
MIN_SUPPORTED_WIRE_VERSION = 6
MAX_SUPPORTED_WIRE_VERSION = 17
MAX_SUPPORTED_WIRE_VERSION = 21
# Frequency to call hello on servers, in seconds.
HEARTBEAT_FREQUENCY = 10

View File

@ -540,8 +540,8 @@ class TestMultiServerTopology(TopologyTest):
HelloCompat.LEGACY_CMD: True,
"setName": "rs",
"hosts": ["a"],
"minWireVersion": 21,
"maxWireVersion": 22,
"minWireVersion": 22,
"maxWireVersion": 24,
},
)
@ -551,7 +551,7 @@ class TestMultiServerTopology(TopologyTest):
# Error message should say which server failed and why.
self.assertEqual(
str(e),
"Server at a:27017 requires wire version 21, but this version "
"Server at a:27017 requires wire version 22, but this version "
"of PyMongo only supports up to %d." % (common.MAX_SUPPORTED_WIRE_VERSION,),
)
else: