Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3555

Sporadic tests failures: RequestHeartbeat_should_force_another_heartbeat

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing
    • None

      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:

      Unable to find source-code formatter for language: csharp. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      capturedEvents.Any().Should().BeFalse();
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            mikalai.mazurenka@mongodb.com Mikalai Mazurenka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: