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

Fix json driven tests for async

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.11.0
    • Component/s: Testing
    • Labels:
      None

      Description

      A number of JSON driven tests has a bug when they always fail in async tests.

      For example(there are more of them): JsonDrivenAssertSessionPinnedTest: https://github.com/mongodb/mongo-csharp-driver/blob/master/tests/MongoDB.Driver.Tests/JsonDrivenTests/JsonDrivenAssertSessionPinnedTest.cs#L32

      The only logic in the test is asserting, however since ActAsync is not overwritten, calling this test from the async mode will always trigger NotImplemented exception. The only reason why we don't see this exception because we overwrite the base implementation for Assert and as a result, we just ignore the thrown exception..

        Attachments

          Activity

            People

            Assignee:
            mikalai.mazurenka Mikalai Mazurenka
            Reporter:
            dmitry.lukyanov Dmitry Lukyanov
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: