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

False-positive unit test failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.6
    • Fix Version/s: None
    • Component/s: Unit tests
    • Labels:
    • Affected Branches:
      MOODLE_26_STABLE

      Description

      I encountered the following fail while running unit tests in the latest master...

      2) core_setuplib_testcase::test_localcachedir
      Time is lower that allowed start value
      Failed asserting that 1383549254 is equal to 1383549255 or is greater than 13835
      49255.
       
      D:\xampp\htdocs\master_integration\lib\phpunit\classes\advanced_testcase.php:365
       
      D:\xampp\htdocs\master_integration\lib\tests\setuplib_test.php:162
      D:\xampp\htdocs\master_integration\lib\phpunit\classes\advanced_testcase.php:80
       
      To re-run:
       \xampp\php\phpunit core_setuplib_testcase lib\tests\setuplib_test.php
      

      This was previously reported by Sam Marshall in MDL-41935, but it doesn't seem to have been fixed as part of that issue.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              salvetore Michael de Raadt
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: