File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6969# What this version of PyMongo supports.
7070MIN_SUPPORTED_SERVER_VERSION = "4.2"
7171MIN_SUPPORTED_WIRE_VERSION = 8
72- # MongoDB 8 .0
73- MAX_SUPPORTED_WIRE_VERSION = 25
72+ # MongoDB 9 .0
73+ MAX_SUPPORTED_WIRE_VERSION = 29
7474
7575# Frequency to call hello on servers, in seconds.
7676HEARTBEAT_FREQUENCY = 10
Original file line number Diff line number Diff line change @@ -593,8 +593,8 @@ def test_wire_version(self):
593593 HelloCompat .LEGACY_CMD : True ,
594594 "setName" : "rs" ,
595595 "hosts" : ["a" ],
596- "minWireVersion" : 26 ,
597- "maxWireVersion" : 27 ,
596+ "minWireVersion" : common . MAX_SUPPORTED_WIRE_VERSION + 1 ,
597+ "maxWireVersion" : common . MAX_SUPPORTED_WIRE_VERSION + 2 ,
598598 },
599599 )
600600
@@ -604,8 +604,9 @@ def test_wire_version(self):
604604 # Error message should say which server failed and why.
605605 self .assertEqual (
606606 str (e ),
607- "Server at a:27017 requires wire version 26, but this version "
608- "of PyMongo only supports up to %d." % (common .MAX_SUPPORTED_WIRE_VERSION ,),
607+ "Server at a:27017 requires wire version %d, but this version "
608+ "of PyMongo only supports up to %d."
609+ % (common .MAX_SUPPORTED_WIRE_VERSION + 1 , common .MAX_SUPPORTED_WIRE_VERSION ),
609610 )
610611 else :
611612 self .fail ("No error with incompatible wire version" )
You can’t perform that action at this time.
0 commit comments