Skip to content

Commit 04926c6

Browse files
committed
fix monitor failure
1 parent e23d019 commit 04926c6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pymongo/pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ def _next_reply(self):
606606
self.more_to_come = reply.more_to_come
607607
unpacked_docs = reply.unpack_response()
608608
response_doc = unpacked_docs[0]
609-
helpers._check_command_response(response_doc)
609+
helpers._check_command_response(response_doc, self.max_wire_version)
610610
return response_doc
611611

612612
def command(self, dbname, spec, slave_ok=False,

test/test_discovery_and_monitoring.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@ def assert_event_count(self, event, count):
334334
335335
Assert the given event was published exactly `count` times.
336336
"""
337-
self.assertEqual(self._event_count(event), count)
337+
self.assertEqual(self._event_count(event), count,
338+
'expected %s not %r' % (count, event))
338339

339340
def wait_for_event(self, event, count):
340341
"""Run the waitForEvent test operation.

0 commit comments

Comments
 (0)