Skip to content
Snippets Groups Projects
Commit 451a7c34 authored by Kunal Sachdev's avatar Kunal Sachdev Committed by Ted Bowman
Browse files

Issue #3315700 by kunal.sachdev: Remove Environment::setTimeLimit() call from build tests

parent ddc9ddf5
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
namespace Drupal\automatic_updates_test; namespace Drupal\automatic_updates_test;
use Drupal\automatic_updates\Exception\UpdateException; use Drupal\automatic_updates\Exception\UpdateException;
use Drupal\Component\Utility\Environment;
use Drupal\Core\Controller\ControllerBase; use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Render\HtmlResponse; use Drupal\Core\Render\HtmlResponse;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
...@@ -23,8 +22,6 @@ class TestController extends ControllerBase { ...@@ -23,8 +22,6 @@ class TestController extends ControllerBase {
* The response object. * The response object.
*/ */
public function update(string $to_version): Response { public function update(string $to_version): Response {
// Let it take as long as it needs.
Environment::setTimeLimit(0);
/** @var \Drupal\automatic_updates\Updater $updater */ /** @var \Drupal\automatic_updates\Updater $updater */
$updater = \Drupal::service('automatic_updates.updater'); $updater = \Drupal::service('automatic_updates.updater');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment