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

Random unit test fail in core_grade_report_graderlib_testcase

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.6.5, 2.8
    • 2.6.6, 2.7.3
    • Unit tests
    • MOODLE_26_STABLE, MOODLE_28_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • MDL-47706-master
    • Hide

      Run the affected unit tests several times until you're happy they aren't randomly failing. I'd suggest at least 30 minutes

      1. while [ $? -eq 0 ]; do ./vendor/bin/phpunit core_grade_report_graderlib_testcase grade/tests/report_graderlib_test.php; done
      Show
      Run the affected unit tests several times until you're happy they aren't randomly failing. I'd suggest at least 30 minutes while [ $? -eq 0 ]; do ./vendor/bin/phpunit core_grade_report_graderlib_testcase grade/tests/report_graderlib_test.php; done

    Description

      There was 1 failure:

      1) core_grade_report_graderlib_testcase::test_process_data
      Failed asserting that 80 matches expected '60.00000'.

      /home/damyonw/Documents/Moodle/integration/master/moodle/grade/tests/report_graderlib_test.php:87
      /home/damyonw/Documents/Moodle/integration/master/moodle/lib/phpunit/classes/advanced_testcase.php:80

      To re-run:
      ./vendor/bin/phpunit core_grade_report_graderlib_testcase grade/tests/report_graderlib_test.php

      Attachments

        Issue Links

          Activity

            People

              dobedobedoh Andrew Lyons
              damyon Damyon Wiese
              Marina Glancy Marina Glancy
              Damyon Wiese Damyon Wiese
              Damyon Wiese Damyon Wiese
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/Nov/14