Index: modules/update/update.module =================================================================== RCS file: /cvs/drupal/drupal/modules/update/update.module,v retrieving revision 1.75 diff -u -r1.75 update.module --- modules/update/update.module 3 Jan 2011 02:17:34 -0000 1.75 +++ modules/update/update.module 5 Jan 2011 04:10:02 -0000 @@ -296,11 +296,9 @@ update_refresh(); _update_cron_notify(); } - else { - // Otherwise, see if any individual projects are now stale or still - // missing data, and if so, try to fetch the data. - update_get_available(TRUE); - } + // Now see if any individual projects are now stale or still missing data, + // and if so, try to fetch the data. + update_get_available(TRUE); // Clear garbage from disk. update_clear_update_disk_cache(); Index: modules/update/update.test =================================================================== RCS file: /cvs/drupal/drupal/modules/update/update.test,v retrieving revision 1.22 diff -u -r1.22 update.test --- modules/update/update.test 3 Jan 2011 02:41:33 -0000 1.22 +++ modules/update/update.test 5 Jan 2011 04:10:02 -0000 @@ -68,6 +68,16 @@ } /** + * Tests that a cron run will cause updates to be checked for. + */ + function testCronRunsUpdate() { + $this->setSystemInfo7_0(); + $this->drupalGet('admin/modules'); + $this->clickLink('Run cron'); + $this->assertNoText(t('No update information available.')); + } + + /** * Tests the update module when no updates are available. */ function testNoUpdatesAvailable() {