From 816be32b6fef0fd1d61575f28c55915848b3f45d Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Tue, 26 Nov 2019 14:37:25 +0000 Subject: [PATCH] Issue #3092268 by dww, ravi.shankar: Replace call of deprecated drupal_set_time_limit() function --- core/scripts/run-tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh index 528b39f9c612..10475af24bd1 100755 --- a/core/scripts/run-tests.sh +++ b/core/scripts/run-tests.sh @@ -6,6 +6,7 @@ */ use Drupal\Component\FileSystem\FileSystem; +use Drupal\Component\Utility\Environment; use Drupal\Component\Utility\Html; use Drupal\Component\Utility\Timer; use Drupal\Core\Composer\Composer; @@ -159,7 +160,7 @@ $test_list = simpletest_script_get_test_list(); // Try to allocate unlimited time to run the tests. -drupal_set_time_limit(0); +Environment::setTimeLimit(0); simpletest_script_reporter_init(); $tests_to_run = []; -- GitLab