Skip to content

Commit f7225fd

Browse files
authored
PYTHON-3652 Bump maxWireVersion for MongoDB 7.0 (#1188)
1 parent 9256cb2 commit f7225fd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pymongo/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
# What this version of PyMongo supports.
6464
MIN_SUPPORTED_SERVER_VERSION = "3.6"
6565
MIN_SUPPORTED_WIRE_VERSION = 6
66-
MAX_SUPPORTED_WIRE_VERSION = 17
66+
MAX_SUPPORTED_WIRE_VERSION = 21
6767

6868
# Frequency to call hello on servers, in seconds.
6969
HEARTBEAT_FREQUENCY = 10

test/test_topology.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,8 @@ def test_wire_version(self):
540540
HelloCompat.LEGACY_CMD: True,
541541
"setName": "rs",
542542
"hosts": ["a"],
543-
"minWireVersion": 21,
544-
"maxWireVersion": 22,
543+
"minWireVersion": 22,
544+
"maxWireVersion": 24,
545545
},
546546
)
547547

@@ -551,7 +551,7 @@ def test_wire_version(self):
551551
# Error message should say which server failed and why.
552552
self.assertEqual(
553553
str(e),
554-
"Server at a:27017 requires wire version 21, but this version "
554+
"Server at a:27017 requires wire version 22, but this version "
555555
"of PyMongo only supports up to %d." % (common.MAX_SUPPORTED_WIRE_VERSION,),
556556
)
557557
else:

0 commit comments

Comments
 (0)