Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
W-A-James committed Jan 5, 2024
1 parent cedb0a2 commit f236489
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/server-discovery-and-monitoring/tests/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,19 @@ Run the following test(s) against MongoDB 4.2+ standalone server.
1. Test that ``ServerHeartbeatStartedEvent`` is emitted after the monitoring socket was created and before the ``hello`` call was made.

#. Create a client with ``heartbeatFrequencyMS=10000``, ``appName=heartbeatTest``, ``minPoolSize=0``, ``maxPoolSize=1`` and listen to server events.

#. Connect to the server

#. Sleep for 2 seconds

#. Close the client

#. Assert that one ``ServerHeartbeatStartedEvent`` has been emitted

#. Assert that the client has created one socket and that it was created before the ``ServerHeartbeatStartedEvent`` was emitted

#. Assert that the ``hello`` was sent after the ``ServerHeartbeatStartedEvent`` was emitted.

#. Assert that the ``ServerHeartbeatSucceededEvent`` was emitted

.. Section for links.
Expand Down

0 comments on commit f236489

Please sign in to comment.