[CSHARP-2597] Fix GridFS tests that fail intermittently because they were asserting incorrectly Created: 19/Apr/19  Updated: 28/Oct/23  Resolved: 22/May/19

Status: Closed
Project: C# Driver
Component/s: Testing
Affects Version/s: None
Fix Version/s: 2.8.1

Type: Improvement Priority: Major - P3
Reporter: Vincent Kam (Inactive) Assignee: Robert Stam
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently, GridFS tests expect operations to complete within a certain amount of time, t. t is occasionally insufficient and requires us to restart our tests on Evergreen. Increasing t would reduce the amount of time it would take for a patch to go green by reducing the number of times we have to restart tests.



 Comments   
Comment by Githook User [ 22/May/19 ]

Author:

{'email': 'robert@robertstam.org', 'name': 'rstam', 'username': 'rstam'}

Message: CSHARP-2597: Fix GridFS tests that fail intermittently because they were asserting incorrectly.
Branch: v2.8.x
https://github.com/mongodb/mongo-csharp-driver/commit/ffb455e0d4cab33360ff7d61e8ddf547f26807d3

Comment by Githook User [ 22/May/19 ]

Author:

{'email': 'robert@robertstam.org', 'name': 'rstam', 'username': 'rstam'}

Message: CSHARP-2597: Fix GridFS tests that fail intermittently because they were asserting incorrectly.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/a19659860c2a6e6f199323a481b5e19f8d03d421

Comment by Robert Stam [ 20/May/19 ]

Actually, the intermittent failures were not caused by t being too small, but rather by truncation errors that occurred when converting back and forth between .NET DateTime values and BsonDateTime values;

A better fix is to compare the actual and expected values using BsonDateTime values instead of DateTime values.

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