summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-08-28 15:59:59 +0200
committerJoas Schilling <coding@schilljs.com>2023-08-29 07:42:33 +0200
commit95b9417095420c8ec67225cb2820102399e87676 (patch)
treea2b6ca454317111a03f96ea2c1c8339d059ab8fd
parentb425105f9a40f6f6e6ae2e8ad950d17cdd630926 (diff)
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 <coding@schilljs.com>
-rw-r--r--tests/integration/features/bootstrap/CommandLineTrait.php12
1 files changed, 4 insertions, 8 deletions
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;
}