Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
address review
  • Loading branch information
blink1073 committed Apr 12, 2023
commit f7ac08ba4333df4634a5b1c1ce7c95bce50ae244
9 changes: 4 additions & 5 deletions test/test_topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,6 @@ def test_wire_version(self):
t.select_servers(any_server_selector)

# Incompatible.
max_version = common.MAX_SUPPORTED_WIRE_VERSION
got_hello(
t,
address,
Expand All @@ -541,8 +540,8 @@ def test_wire_version(self):
HelloCompat.LEGACY_CMD: True,
"setName": "rs",
"hosts": ["a"],
"minWireVersion": max_version + 1,
"maxWireVersion": max_version + 2,
"minWireVersion": 22,
"maxWireVersion": 24,
},
)

Expand All @@ -552,8 +551,8 @@ def test_wire_version(self):
# Error message should say which server failed and why.
self.assertEqual(
str(e),
"Server at a:27017 requires wire version %d, but this version "
"of PyMongo only supports up to %d." % (max_version + 1, max_version),
"Server at a:27017 requires wire version 22, but this version "
"of PyMongo only supports up to %d." % (common.MAX_SUPPORTED_WIRE_VERSION,),
)
else:
self.fail("No error with incompatible wire version")
Expand Down