From e7106ee391a29cc386947cdb287c2cd5ced05bc4 Mon Sep 17 00:00:00 2001 From: webchick Date: Tue, 6 Aug 2013 23:43:36 -0700 Subject: [PATCH] Issue #2057247 by alexpott: Fixed On really quick testbots LocaleUpdateCronTest can fail. --- .../locale/lib/Drupal/locale/Tests/LocaleUpdateCronTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateCronTest.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateCronTest.php index 04dd4fdd32f..219b7f052ad 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateCronTest.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateCronTest.php @@ -108,6 +108,8 @@ class LocaleUpdateCronTest extends LocaleUpdateBase { $queue = \Drupal::queue('locale_translation', TRUE); $this->assertEqual($queue->numberOfItems(), 3, 'Queue holds tasks for one project.'); + // Ensure last checked is updated to a greater time than the initial value. + sleep(1); // Test: Execute cron and check if tasks are executed correctly. // Run cron to process the tasks in the queue. $this->drupalGet('admin/reports/status/run-cron');