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 63
63
# What this version of PyMongo supports.
64
64
MIN_SUPPORTED_SERVER_VERSION = "3.6"
65
65
MIN_SUPPORTED_WIRE_VERSION = 6
66
- MAX_SUPPORTED_WIRE_VERSION = 17
66
+ MAX_SUPPORTED_WIRE_VERSION = 21
67
67
68
68
# Frequency to call hello on servers, in seconds.
69
69
HEARTBEAT_FREQUENCY = 10
Original file line number Diff line number Diff line change @@ -540,8 +540,8 @@ def test_wire_version(self):
540
540
HelloCompat .LEGACY_CMD : True ,
541
541
"setName" : "rs" ,
542
542
"hosts" : ["a" ],
543
- "minWireVersion" : 21 ,
544
- "maxWireVersion" : 22 ,
543
+ "minWireVersion" : 22 ,
544
+ "maxWireVersion" : 24 ,
545
545
},
546
546
)
547
547
@@ -551,7 +551,7 @@ def test_wire_version(self):
551
551
# Error message should say which server failed and why.
552
552
self .assertEqual (
553
553
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 "
555
555
"of PyMongo only supports up to %d." % (common .MAX_SUPPORTED_WIRE_VERSION ,),
556
556
)
557
557
else :
You can’t perform that action at this time.
0 commit comments