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 58
58
# What this version of PyMongo supports.
59
59
MIN_SUPPORTED_SERVER_VERSION = "2.6"
60
60
MIN_SUPPORTED_WIRE_VERSION = 2
61
- MAX_SUPPORTED_WIRE_VERSION = 9
61
+ MAX_SUPPORTED_WIRE_VERSION = 13
62
62
63
63
# Frequency to call ismaster on servers, in seconds.
64
64
HEARTBEAT_FREQUENCY = 10
Original file line number Diff line number Diff line change @@ -587,16 +587,16 @@ def test_wire_version(self):
587
587
'ismaster' : True ,
588
588
'setName' : 'rs' ,
589
589
'hosts' : ['a' ],
590
- 'minWireVersion' : 11 ,
591
- 'maxWireVersion' : 12 })
590
+ 'minWireVersion' : 21 ,
591
+ 'maxWireVersion' : 22 })
592
592
593
593
try :
594
594
t .select_servers (any_server_selector )
595
595
except ConfigurationError as e :
596
596
# Error message should say which server failed and why.
597
597
self .assertEqual (
598
598
str (e ),
599
- "Server at a:27017 requires wire version 11 , but this version "
599
+ "Server at a:27017 requires wire version 21 , but this version "
600
600
"of PyMongo only supports up to %d."
601
601
% (common .MAX_SUPPORTED_WIRE_VERSION ,))
602
602
else :
You can’t perform that action at this time.
0 commit comments