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

Use duration ctor for asio timer in NIA setAlarm

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Platforms 2016-11-21
    • 0

      NetworkInterfaceASIO currently creates timers for setAlarm using an absolute time point rather than a duration. Our tests were switched to use mock timers, and this is resulting in taking a mock timer time point and setting an expiry as though it was a time point on the system clock. Switching setAlarm to use durations relative to NetworkInterfaceASIO::now() will fix this issue in our test.

            Assignee:
            matt.cotter Matt Cotter
            Reporter:
            matt.cotter Matt Cotter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: