From 451a7c34bc1794237a6518ac7279695e6e96c723 Mon Sep 17 00:00:00 2001
From: "kunal.sachdev" <kunal.sachdev@3685163.no-reply.drupal.org>
Date: Fri, 21 Oct 2022 12:48:38 +0000
Subject: [PATCH] Issue #3315700 by kunal.sachdev: Remove
 Environment::setTimeLimit() call from build tests

---
 tests/modules/automatic_updates_test/src/TestController.php | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tests/modules/automatic_updates_test/src/TestController.php b/tests/modules/automatic_updates_test/src/TestController.php
index e48e80dd94..192aceb520 100644
--- a/tests/modules/automatic_updates_test/src/TestController.php
+++ b/tests/modules/automatic_updates_test/src/TestController.php
@@ -3,7 +3,6 @@
 namespace Drupal\automatic_updates_test;
 
 use Drupal\automatic_updates\Exception\UpdateException;
-use Drupal\Component\Utility\Environment;
 use Drupal\Core\Controller\ControllerBase;
 use Drupal\Core\Render\HtmlResponse;
 use Symfony\Component\HttpFoundation\Response;
@@ -23,8 +22,6 @@ class TestController extends ControllerBase {
    *   The response object.
    */
   public function update(string $to_version): Response {
-    // Let it take as long as it needs.
-    Environment::setTimeLimit(0);
 
     /** @var \Drupal\automatic_updates\Updater $updater */
     $updater = \Drupal::service('automatic_updates.updater');
-- 
GitLab