Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.5.1, 2.6
-
Component/s: Libraries, Unit tests
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_25_STABLE, MOODLE_26_STABLE
-
Fixed Branches:MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-41198-master -
Pull Master Diff URL:
Description
On my system, and at least one other in the wild (see this forum discussion https://moodle.org/mod/forum/discuss.php?d=233467), either 2 or 3 unit tests in the complete run always fail. Here is the output:
There were 3 failures:
|
|
1) core_cache_testcase::test_session_cache_switch_user
|
Failed asserting that 'RYpeokgWPc' is not equal to <string:RYpeokgWPc>.
|
|
C:\Users\sm449\workspace\core-moodle-github\cache\tests\cache_test.php:1201
|
C:\Users\sm449\workspace\core-moodle-github\lib\phpunit\classes\advanced_testcase.php:76
|
|
To re-run:
|
c:/Users/sm449/workspace/core-moodle-github/vendor/phpunit/phpunit/composer/bin/phpunit core_cache_testcase cache\tests\cache_test.php
|
|
2) core_cache_testcase::test_session_cache_switch_user_application_mapping
|
Failed asserting that 'Jl8SwMDn1a' is not equal to <string:Jl8SwMDn1a>.
|
|
C:\Users\sm449\workspace\core-moodle-github\cache\tests\cache_test.php:1237
|
C:\Users\sm449\workspace\core-moodle-github\lib\phpunit\classes\advanced_testcase.php:76
|
|
To re-run:
|
c:/Users/sm449/workspace/core-moodle-github/vendor/phpunit/phpunit/composer/bin/phpunit core_cache_testcase cache\tests\cache_test.php
|
|
3) core_cache_testcase::test_session_cache_switch_user_multiple
|
Failed asserting that 'SSFoxtGSBH' is not equal to <string:SSFoxtGSBH>.
|
|
C:\Users\sm449\workspace\core-moodle-github\cache\tests\cache_test.php:1302
|
C:\Users\sm449\workspace\core-moodle-github\lib\phpunit\classes\advanced_testcase.php:76
|
This can NOT be reproduced on Tim's system even though we run on the same infrastructure. I haven't heard of another developer seeing this issue, either. So basically not reproducible.
It may indicate a problem with my settings in config.php in which case it could be useful to add the answer to the docs page: http://docs.moodle.org/dev/Common_unit_test_problems