Skip to content

CSHARP-6199: Adjust HeartbeatInterval in tests to follow MongoDB 9.0 min heartbeat interval changes - #2100

Open
sanych-sun wants to merge 1 commit into
mongodb:mainfrom
sanych-sun:CSHARP-6199
Open

CSHARP-6199: Adjust HeartbeatInterval in tests to follow MongoDB 9.0 min heartbeat interval changes#2100
sanych-sun wants to merge 1 commit into
mongodb:mainfrom
sanych-sun:CSHARP-6199

Conversation

@sanych-sun

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings August 21, 2026 21:12
@sanych-sun
sanych-sun requested a review from a team as a code owner August 21, 2026 21:12
@sanych-sun
sanych-sun requested a review from adelinowona August 21, 2026 21:12
@sanych-sun sanych-sun added the chore Non–user-facing code changes (tests, build scripts, etc.). label Aug 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts spec/prose tests to remain reliable under MongoDB 9.0’s minimum heartbeat interval behavior by increasing configured heartbeat frequency and aligning waits/timeouts accordingly.

Changes:

  • Increased HeartbeatInterval in the sessions prose test to 500ms and extended the heartbeat-pair wait timeout to reduce flakiness.
  • Increased the heartbeat interval used by the SDAM connection-pool management prose test to 500ms.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/MongoDB.Driver.Tests/Specifications/sessions/SessionsProseTests.cs Updates heartbeat interval and wait timeout so the SDAM heartbeat event expectation remains valid with a higher minimum interval.
tests/MongoDB.Driver.Tests/Specifications/server-discovery-and-monitoring/ServerDiscoveryAndMonitoringProseTests.cs Updates the test’s configured heartbeat interval to match the newer minimum heartbeat behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sanych-sun
sanych-sun requested review from BorisDog and removed request for adelinowona August 21, 2026 21:20

@BorisDog BorisDog left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Non–user-facing code changes (tests, build scripts, etc.).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants