Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-41428

Robustify update_min_max_examples.js

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.14
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible
    • 17

      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.

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: