-
Bug
-
Resolution: Deferred
-
Minor
-
None
-
2.5.2
-
MOODLE_25_STABLE
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):