Commit e7106ee3 authored by webchick's avatar webchick
Browse files

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

parent b7d3774c
......@@ -108,6 +108,8 @@ function testUpdateCron() {
$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');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment