Robustify update_min_max_examples.js

XMLWordPrintableJSON

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

      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
            Reporter:
            Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: