[SERVER-41428] Robustify update_min_max_examples.js Created: 31/May/19  Updated: 29/Oct/23  Resolved: 31/May/19

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.1.14

Type: Improvement Priority: Major - P3
Reporter: Charlie Swanson Assignee: Charlie Swanson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Participants:
Linked BF Score: 17

 Description   

In rare circumstances it's possible for the clock to go backwards on some platforms such as windows, but this test expects a date generated before a 2 millisecond sleep and a date generated after that sleep to be in order.

This test is trying to test the behavior of the $max operator when working with dates. We should avoid relying on a stable clock in this test and instead construct two dates which are definitively in order.



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

Author:

{'name': 'Charlie Swanson', 'email': 'charlie.swanson@mongodb.com', 'username': 'cswanson310'}

Message: SERVER-41428 Robustify update_min_max_examples.js
Branch: master
https://github.com/mongodb/mongo/commit/160dbb352cae76307016f42934902d74e7879e5a

Generated at Thu Feb 08 04:57:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.