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

Use duration ctor for asio timer in NIA setAlarm

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.0-rc3
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Platforms 2016-11-21
    • Linked BF Score:
      0

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: