-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.2
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
From internal CI, reference:
Regression
|
|
core_question.externallib_test.test_get_random_question_summaries_with_limit_and_offset (from core_question_externallib_test)
|
Failing for the past 1 build (Since
|
#118 )
|
Took 0.14 sec.
|
Stacktrace
|
|
core_question\externallib_test::test_get_random_question_summaries_with_limit_and_offset
|
Failed asserting that '158003' matches expected 158000.
|
|
/var/www/html/question/tests/externallib_test.php:405
|
/var/www/html/lib/phpunit/classes/advanced_testcase.php:80
|
Looking at the test in question, it appears to be asserting supposed ordering on returned DB records (via $limit and $offset arguments) on a query that doesn't specify any ordering (hence sporadic failures when database decides to return data in unexpected order)
Looking at history of that class, appears to be a regression from MDL-71516, as the 311 version does still have the predictable ordering in the database query