File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 68
68
# What this version of PyMongo supports.
69
69
MIN_SUPPORTED_SERVER_VERSION = "3.6"
70
70
MIN_SUPPORTED_WIRE_VERSION = 6
71
- MAX_SUPPORTED_WIRE_VERSION = 21
71
+ # MongoDB 8.0
72
+ MAX_SUPPORTED_WIRE_VERSION = 25
72
73
73
74
# Frequency to call hello on servers, in seconds.
74
75
HEARTBEAT_FREQUENCY = 10
Original file line number Diff line number Diff line change @@ -548,8 +548,8 @@ def test_wire_version(self):
548
548
HelloCompat .LEGACY_CMD : True ,
549
549
"setName" : "rs" ,
550
550
"hosts" : ["a" ],
551
- "minWireVersion" : 22 ,
552
- "maxWireVersion" : 24 ,
551
+ "minWireVersion" : 26 ,
552
+ "maxWireVersion" : 27 ,
553
553
},
554
554
)
555
555
@@ -559,7 +559,7 @@ def test_wire_version(self):
559
559
# Error message should say which server failed and why.
560
560
self .assertEqual (
561
561
str (e ),
562
- "Server at a:27017 requires wire version 22 , but this version "
562
+ "Server at a:27017 requires wire version 26 , but this version "
563
563
"of PyMongo only supports up to %d." % (common .MAX_SUPPORTED_WIRE_VERSION ,),
564
564
)
565
565
else :
You can’t perform that action at this time.
0 commit comments