-
Bug
-
Resolution: Fixed
-
Minor
-
3.7, 3.7.3, 3.8
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
MDL-67217_master -
stronk7 found a random phpunit failure in test_model_timelimit. After investigating the issue a bit I saw that usleep is not always waiting the specified number of milliseconds and this leads to random failures.
Apparently, this is an issue in windows usleep implementation and we may also need to revisit other uses of usleep in our unit test suit git grep -C 2 "usleep(" | grep -C 2 test The cost of stability in windows may be a few more seconds of phpunit execution.