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

Random "test_get_user_badge_by_hash" unit test failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.3
    • 4.3
    • Badges, Unit tests

      We started getting random failures related to test_get_user_badge_by_hash unit test after MDL-74570 was integrated.

      Console output

      1) core_badges\external\get_user_badge_by_hash_test::test_get_user_badge_by_hash
      Failed asserting that two arrays are equal.
      --- Expected
      +++ Actual
      @@ @@
               'name' => 'Test badge site'
               'description' => 'Testing badges site'
               'timecreated' => 1688511867
      -        'timemodified' => 1688511867
      +        'timemodified' => 1688511868
               'usercreated' => 5
               'usermodified' => 5
               'expiredate' => null
       
      /var/www/html/badges/tests/external/get_user_badge_by_hash_test.php:187
      /var/www/html/lib/phpunit/classes/advanced_testcase.php:94
      

      Failed builds

            rodrigo.mady@moodle.com Rodrigo Mady
            lameze Simey Lameze
            Angelia Dela Cruz Angelia Dela Cruz
            Simey Lameze Simey Lameze
            CiBoT CiBoT
            Votes:
            0 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 - 1 day, 4 hours, 52 minutes
                1d 4h 52m

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