Issue #2057247 by alexpott: Fixed On really quick testbots LocaleUpdateCronTest can fail.

8.0.x
webchick 2013-08-06 23:43:36 -07:00
parent b7d3774c6e
commit e7106ee391
1 changed files with 2 additions and 0 deletions

View File

@ -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');