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

Remove sleeptest from dbtests

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.21, 3.4.16, 3.6.6, 3.7.6
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v3.6, v3.4, v3.2
    • Sprint:
      Platforms 2018-04-23
    • Linked BF Score:
      45

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: