-
Type: Build Failure
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Python Drivers
-
Not Needed
-
test_heartbeat_start_ordering fails occasionally, this one happened on PyPy in github actions:
=================================== FAILURES =================================== ___________ TestHeartbeatStartOrdering.test_heartbeat_start_ordering ___________ self = <test.test_discovery_and_monitoring.TestHeartbeatStartOrdering testMethod=test_heartbeat_start_ordering> def test_heartbeat_start_ordering(self): events = [] listener = HeartbeatEventsListListener(events) server_thread = threading.Thread(target=self.start_server, args=(events,)) server_thread.start() _c = MongoClient( "mongodb://localhost:9999", serverSelectionTimeoutMS=500, event_listeners=(listener,) ) server_thread.join() listener.wait_for_event(ServerHeartbeatStartedEvent, 1) listener.wait_for_event(ServerHeartbeatFailedEvent, 1) > self.assertEqual( events, [ "serverHeartbeatStartedEvent", "client connected", "client hello received", "serverHeartbeatFailedEvent", ], ) E AssertionError: Lists differ: ['ser[23 chars]t', 'serverHeartbeatFailedEvent', 'serverHeart[88 chars]ent'] != ['ser[23 chars]t', 'client connected', 'client hello received[27 chars]ent'] E E First differing element 1: E 'serverHeartbeatFailedEvent' E 'client connected' E E First list contains 2 additional elements. E First extra element 4: E 'client hello received' E E ['serverHeartbeatStartedEvent', E - 'serverHeartbeatFailedEvent', E - 'serverHeartbeatStartedEvent', E 'client connected', E 'client hello received', E 'serverHeartbeatFailedEvent'] test/test_discovery_and_monitoring.py:430: AssertionError
https://github.com/mongodb/mongo-python-driver/actions/runs/8605017509/job/23580360068#step:7:4554
- related to
-
PYTHON-4022 Clarify whether heartbeat started event should be emitted before connection establishment in ServerMonitor
- Closed