Project: moodle
Issue MDL-43905: incorrect code for updates of login times
during event migration the code updating user login times got borked - he $USER->timemodified and db state get out of sync; it is also painfully slow... {code} core_moodlelib_testcase::test_complete_user_login Time is lower that allowed start value Failed asserting that '1390980862' is equal to 1390980863 or is greater than 1390980863. /home/jerome/moodles/integration_master_mysqli/moodle/lib/phpunit/classes/advanced_testcase.php:393 /home/jerome/moodles/integration_master_mysqli/moodle/lib/tests/moodlelib_test.php:2473 /home/jerome/moodles/integration_master_mysqli/moodle/lib/phpunit/classes/advanced_testcase.php:80 {code} At the same time this code triggers extra user updated event right before user logged in event which is also not correct.
Story points: 4