PYTHON-3652 Bump maxWireVersion for MongoDB 7.0 (#1188)
This commit is contained in:
parent
9256cb20af
commit
f7225fda55
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user