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

Protect xunit/logging infrastructure by DebuggerStepThrough

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.14.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      In the current test implementation we can accidentally visit xunit/logging infrastructure in debugging, it's better to hide this logic via [DebuggerStepThrough] attribute.

      We can also consider adding `Debugger.IsAttached` condition https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.debugger.isattached?view=net-5.0 to avoid throwing timeout exception in debugging

            Assignee:
            dmitry.lukyanov@mongodb.com Dmitry Lukyanov (Inactive)
            Reporter:
            dmitry.lukyanov@mongodb.com Dmitry Lukyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: