diff --git a/tests/feeds.test b/tests/feeds.test index 24f0ad6f71ea37cb3f1ee84d5e80546cf272bc50..09cb24ba45fd9243f35408aeae431351ccd8aa85 100644 --- a/tests/feeds.test +++ b/tests/feeds.test @@ -562,9 +562,10 @@ class FeedsSchedulerTestCase extends FeedsWebTestCase { // This implicitly tests the import_on_create node setting being 0. $this->assertTrue($nids[0] == 1 && $nids[1] == 2, 'Node ids sequential.'); - // Log out and run cron. + // Log out and run cron twice. $this->drupalLogout(); $this->drupalGet($GLOBALS['base_url'] .'/cron.php'); + $this->drupalGet($GLOBALS['base_url'] .'/cron.php'); // There should be feeds_schedule_num (= 10) feeds updated now. $schedule = array(); @@ -575,7 +576,8 @@ class FeedsSchedulerTestCase extends FeedsWebTestCase { $count = db_result(db_query('SELECT COUNT(*) FROM {node} WHERE type = "story"')); $this->assertEqual($count, 100, 'There are 100 story nodes aggregated.'); - // Hit cron again. + // Hit twice cron again. + $this->drupalGet($GLOBALS['base_url'] .'/cron.php'); $this->drupalGet($GLOBALS['base_url'] .'/cron.php'); // There should be feeds_schedule_num X 2 (= 20) feeds updated now. @@ -622,7 +624,8 @@ class FeedsSchedulerTestCase extends FeedsWebTestCase { $this->drupalPost('admin/build/feeds/edit/syndication/settings', $edit, 'Save'); $this->assertText('Refresh: as often as possible'); - // Hit cron again twice. + // Hit cron again, 4 times now. + $this->drupalGet($GLOBALS['base_url'] .'/cron.php'); $this->drupalGet($GLOBALS['base_url'] .'/cron.php'); $this->drupalGet($GLOBALS['base_url'] .'/cron.php'); $this->drupalGet($GLOBALS['base_url'] .'/cron.php');