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

Random unit test fail in core_grade_report_graderlib_testcase

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.6.5, 2.8
    • Fix Version/s: 2.6.6, 2.7.3
    • Component/s: Unit tests
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Epic Link:
    • Pull Master Branch:
      MDL-47706-master

      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

              • Assignee:
                dobedobedoh Andrew Nicols
                Reporter:
                damyon Damyon Wiese
                Peer reviewer:
                Marina Glancy
                Integrator:
                Damyon Wiese
                Tester:
                Damyon Wiese
                Participants:
                Component watchers:
                Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Nov/14