Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 7 additions & 1 deletion test/asynchronous/test_discovery_and_monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,14 @@ class TestPoolManagement(AsyncIntegrationTest):
async def test_pool_unpause(self):
# This test implements the prose test "AsyncConnection Pool Management"
listener = CMAPHeartbeatListener()
# Force polling: streaming's RTT monitor sends its own hello calls with the same
# appName, which can consume the failCommand's mode.times budget before the SDAM
# heartbeat monitor's hello does, so ServerHeartbeatFailedEvent never fires (PYTHON-6003).
_ = await self.async_single_client(
appName="SDAMPoolManagementTest", heartbeatFrequencyMS=500, event_listeners=[listener]
appName="SDAMPoolManagementTest",
heartbeatFrequencyMS=500,
event_listeners=[listener],
serverMonitoringMode="poll",
)
# Assert that AsyncConnectionPoolReadyEvent occurs after the first
# ServerHeartbeatSucceededEvent.
Expand Down
8 changes: 7 additions & 1 deletion test/test_discovery_and_monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,14 @@ class TestPoolManagement(IntegrationTest):
def test_pool_unpause(self):
# This test implements the prose test "Connection Pool Management"
listener = CMAPHeartbeatListener()
# Force polling: streaming's RTT monitor sends its own hello calls with the same
# appName, which can consume the failCommand's mode.times budget before the SDAM
# heartbeat monitor's hello does, so ServerHeartbeatFailedEvent never fires (PYTHON-6003).
_ = self.single_client(
appName="SDAMPoolManagementTest", heartbeatFrequencyMS=500, event_listeners=[listener]
appName="SDAMPoolManagementTest",
heartbeatFrequencyMS=500,
event_listeners=[listener],
serverMonitoringMode="poll",
)
# Assert that ConnectionPoolReadyEvent occurs after the first
# ServerHeartbeatSucceededEvent.
Expand Down
Loading