[CSHARP-2867] Fix json driven tests for async Created: 06/Dec/19 Updated: 28/Oct/23 Resolved: 06/Feb/20 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Testing |
| Affects Version/s: | None |
| Fix Version/s: | 2.11.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Dmitry Lukyanov (Inactive) | Assignee: | Mikalai Mazurenka (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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.. |
| Comments |
| Comment by Githook User [ 07/Apr/20 ] |
|
Author: {'name': 'Mikalai Mazurenka', 'email': 'mikalai.mazurenka@mongodb.com', 'username': 'MikalaiMazurenka'}Message: |
| Comment by Githook User [ 06/Feb/20 ] |
|
Author: {'username': 'MikalaiMazurenka', 'name': 'Mikalai Mazurenka', 'email': 'mikalai.mazurenka@mongodb.com'}Message: |