[CSHARP-3555] Sporadic tests failures: RequestHeartbeat_should_force_another_heartbeat Created: 08/Apr/21  Updated: 31/Mar/22

Status: Backlog
Project: C# Driver
Component/s: Testing
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Mikalai Mazurenka (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Improve Testing

 Description   

MongoDB.Driver.Core.Servers.ServerMonitorTests.RequestHeartbeat_should_force_another_heartbeat sometimes contains unexpected events causing the assertion to fail.

[2021/03/24 16:25:04.127] [xUnit.net 00:05:04.21]     MongoDB.Driver.Core.Servers.ServerMonitorTests.RequestHeartbeat_should_force_another_heartbeat [FAIL]
[2021/03/24 16:25:04.131]   X MongoDB.Driver.Core.Servers.ServerMonitorTests.RequestHeartbeat_should_force_another_heartbeat [4s 997ms]
[2021/03/24 16:25:04.131]   Error Message:
[2021/03/24 16:25:04.131]    Expected True, but found False.

Example1
Example2
Example3

First step could be to include unexpected events into the assertion error message:

capturedEvents.Any().Should().BeFalse();


Generated at Wed Feb 07 21:45:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.