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

Fix json driven tests for async

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.11.0
    • Affects Version/s: None
    • Component/s: Testing
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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..

            Assignee:
            mikalai.mazurenka@mongodb.com Mikalai Mazurenka (Inactive)
            Reporter:
            dmitry.lukyanov@mongodb.com Dmitry Lukyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: