File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 6363# What this version of PyMongo supports.
6464MIN_SUPPORTED_SERVER_VERSION = "3.6"
6565MIN_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.
6969HEARTBEAT_FREQUENCY = 10
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments