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

Random "test_backup_question_tags" phpunit failure

XMLWordPrintable

      The failing test is: core_question.backup_test.test_backup_question_tags

      It has been happening on Oracle 21 builds... it might be caused by slowness or some sorting issue?

      Failed builds

      Console output

      1) core_question\backup_test::test_backup_question_tags
      Failed asserting that two arrays are equal.
      --- Expected
      +++ Actual
      @@ @@
       Array (
           'warnings' => Array (
      -        0 => 'The questions category "top", originally at system/course category context in backup file, will be created at course context by restore'
      -        1 => 'The questions category "Test question category 1", originally at system/course category context in backup file, will be created at course context by restore'
      +        0 => 'The questions category "Test question category 1", originally at system/course category context in backup file, will be created at course context by restore'
      +        1 => 'The questions category "top", originally at system/course category context in backup file, will be created at course context by restore'
           )
       )
       
      /var/www/html/question/tests/backup_test.php:86
      /var/www/html/question/tests/backup_test.php:190
      /var/www/html/lib/phpunit/classes/advanced_testcase.php:80
      

            lameze Simey Lameze
            lameze Simey Lameze
            Tim Hunt Tim Hunt
            Ilya Tregubov Ilya Tregubov
            CiBoT CiBoT
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 28 minutes
                3h 28m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.