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

Remove sleeptest from dbtests

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.21, 3.4.16, 3.6.6, 3.7.6
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v3.6, v3.4, v3.2
    • Platforms 2018-04-23
    • 45

      The sleeptest in dbtests checks whether calling sleep returns within an arbitrary threshold:

                  sleepmicros( 1527123 );
                  ASSERT( t.micros() > 1000000 );
                  ASSERT( t.micros() < 2000000 );
      

      No platform that I know of actually guarantees this test will pass, so it should be removed.

            Assignee:
            jonathan.reams@mongodb.com Jonathan Reams
            Reporter:
            jonathan.reams@mongodb.com Jonathan Reams
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: