Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-57147

core_cache_testcase::test_static_acceleration fails on some windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.3, 3.2
    • Fix Version/s: 3.1.4
    • Component/s: Unit tests
    • Labels:

      Description

      As spotted by Eloy Lafuente (stronk7) on windows 32 bits, any db, php 7, core_cache_testcase::test_static_acceleration fails, because windows only have 1/100 microtime resolution so a lot of times it does not advance "enough".

      https://bugs.php.net/bug.php?id=64633

      3.2rc2
      1 failure (same)
      http://pastebin.com/8HF8MqYL

      As per his recommendation, change those assertGreaterThan() by assertGreaterThanOrEqual() and forget (with a comment explaining it).

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Jan/17