[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: CSHARP-2867: Fix skipping test steps
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/b4a36e71474fe8c37014b395a238c9b84ba9c0c6

Comment by Githook User [ 06/Feb/20 ]

Author:

{'username': 'MikalaiMazurenka', 'name': 'Mikalai Mazurenka', 'email': 'mikalai.mazurenka@mongodb.com'}

Message: CSHARP-2867: Fix json driven tests for async
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/e6b3e5a9e60e34ff0aec1654cf2d9b8033a6ffe6

Generated at Wed Feb 07 21:43:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.