diff --git a/modules/update/update.test b/modules/update/update.test
index e72f4c5..0cf1495 100644
--- a/modules/update/update.test
+++ b/modules/update/update.test
@@ -441,6 +441,11 @@ class UpdateTestContribCase extends UpdateTestHelper {
         'hidden' => FALSE,
       ),
     );
+    // @todo: when there are contributed modules in the site's file system, the
+    // total number off attempts made in the test may exceed the default value
+    // of update_mx_fetch_attempts. Therefore this variable is set ridiculously
+    // high to avoid test failures in those cases.
+    variable_set('update_max_fetch_attempts', 99999);
     variable_set('update_test_system_info', $system_info);
     $xml_mapping = array(
       'drupal' => '0',
