Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2512

Fix flaky macOS tests for recording roundTripTime

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      macOS test runs for master are periodically failing with the following error:

      [2020/03/21 03:07:12.069]   2062 passing (3m)
      [2020/03/21 03:07:12.069]   148 pending
      [2020/03/21 03:07:12.069]   1 failing
      [2020/03/21 03:07:12.069]   1) monitoring
      [2020/03/21 03:07:12.069]        should record roundTripTime:
      [2020/03/21 03:07:12.069]       Uncaught AssertionError: expected -0.0285898 to be above 0
      [2020/03/21 03:07:12.069]       + expected - actual
      [2020/03/21 03:07:12.069]       --0.0285898
      [2020/03/21 03:07:12.069]       +0
      [2020/03/21 03:07:12.069]       at Proxy.assertAbove (node_modules/chai/lib/chai/core/assertions.js:1188:12)
      [2020/03/21 03:07:12.069]       at Proxy.methodWrapper (node_modules/chai/lib/chai/utils/addMethod.js:57:25)
      [2020/03/21 03:07:12.069]       at Timeout.setTimeout (test/unit/sdam/monitoring.test.js:51:18)
      [2020/03/21 03:07:12.069]       at Timeout.wrapped [as _onTimeout] (node_modules/wtfnode/index.js:197:27)
      

      it looks like an error with rounding

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: