From 95b9417095420c8ec67225cb2820102399e87676 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 28 Aug 2023 15:59:59 +0200 Subject: perf(CI): Remove opcache clear from all OCC calls This was only copied from the server PR and should be only needed in rare cases, Talk seems to be unaffected by it Signed-off-by: Joas Schilling --- tests/integration/features/bootstrap/CommandLineTrait.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/integration/features/bootstrap/CommandLineTrait.php b/tests/integration/features/bootstrap/CommandLineTrait.php index 968486a8b..6cb354834 100644 --- a/tests/integration/features/bootstrap/CommandLineTrait.php +++ b/tests/integration/features/bootstrap/CommandLineTrait.php @@ -29,14 +29,14 @@ require __DIR__ . '/../../vendor/autoload.php'; trait CommandLineTrait { /** @var int return code of last command */ - private $lastCode; + private int $lastCode = 0; /** @var string stdout of last command */ - private $lastStdOut; + private string $lastStdOut = ''; /** @var string stderr of last command */ - private $lastStdErr; + private string $lastStdErr = ''; /** @var string */ - protected $ocPath = '../../../..'; + protected string $ocPath = '../../../..'; /** * Invokes an OCC command @@ -66,10 +66,6 @@ trait CommandLineTrait { $this->lastStdErr = stream_get_contents($pipes[2]); $this->lastCode = proc_close($process); - // Clean opcode cache - $client = new GuzzleHttp\Client(); - $client->request('GET', 'http://localhost:8080/apps/testing/clean_opcode_cache.php'); - return $this->lastCode; } -- cgit v1.2.3