[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: |
|
||||
| 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: |