From 6748d11ef49241505e340272512e9fb4d6750461 Mon Sep 17 00:00:00 2001 From: Alex Barth <alex_b@53995.no-reply.drupal.org> Date: Thu, 22 Oct 2009 02:35:20 +0000 Subject: [PATCH] Adjust tests to the change of nr of feeds updated on cron from 10 to 5. --- tests/feeds.test | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/feeds.test b/tests/feeds.test index 24f0ad6f..09cb24ba 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'); -- GitLab