-
Bug
-
Resolution: Fixed
-
Major
-
2.5.2
-
MOODLE_25_STABLE
-
MOODLE_26_STABLE
-
w42_
MDL-41935_m26_timediff -
-
5
-
BACKEND Sprint 6
Some tests fail if they happen to run when the second changes over. This is annoying as it causes random failures.
(It might be difficult to fix in general, but one option is to make tests allow a 1 second leeway, i.e. rather than doing, assert that $time1 == $time2, do assert that $time2 - $time1 < 2.)
There might already be an issue for this but in case not, I'm filing one to start the ball rolling. (I did a search for the test_group_updated_event string and didn't find anything.)
core_group_lib_testcase::test_group_updated_event
|
Event legacy data does not match expected value.
|
Failed asserting that two objects are equal.
|
--- Expected
|
+++ Actual
|
@@ @@
|
'timecreated' => '1379077452'
|
- 'timemodified' => '1379077452'
|
+ 'timemodified' => '1379077453'
|
)
|
And links from Dan (inc this and others):
—
Original description
completionlib_testcase::test_update_state
Expectation failed for method name is equal to <string:internal_set_data> when invoked at sequence index 2
Parameter 1 for invocation completion_info::internal_set_data(stdClass Object (...), stdClass Object (...)) does not match expected value.
Failed asserting that two objects are equal.
— Expected
+++ Actual
@@ @@
stdClass Object (
'completionstate' => 0
- 'timemodified' => 1352192574
+ 'timemodified' => 1352192575
)
/Users/Shared/Jenkins/Home/git_repositories/MOODLE_23_STABLE/lib/completionlib.php:524
/Users/Shared/Jenkins/Home/git_repositories/MOODLE_23_STABLE/lib/tests/completionlib_test.php:162
/Users/Shared/Jenkins/Home/git_repositories/MOODLE_23_STABLE/lib/phpunit/classes/basic_testcase.php:64
- has a non-specific relationship to
-
MDL-42414 One more time() random failure: test_increment_revision_number
-
- Closed
-
- has been marked as being related by
-
MDL-45204 Random unit test failures related with file information
-
- Closed
-
-
MDL-41779 Unit tests: Time-dependent tests fail randomly
-
- Closed
-
-
MDL-42590 auth_ldap_plugin_testcase::test_ldap_user_loggedin_event has time-depdencey
-
- Closed
-
-
MDL-42700 False-positive unit test failure
-
- Closed
-
- will be (partly) resolved by
-
MDL-40207 Simplepie unit tests time out too quickly causing false positives
-
- Closed
-