Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2021-10-18 11:25:35 +0300
committerGitHub <noreply@github.com>2021-10-18 11:25:35 +0300
commit76a120b95696545a2afc255f88e04b5530c5129e (patch)
treeaf52302f3643640a21c0eae7202ad8c163438fe7 /tests/PHPUnit/Integration
parentbfe1f70627ffc338aa6a918d5dbe7d50a929b9f7 (diff)
Improve performance of Process::isSupported by caching it (#18152)
* Improve performance of Process::isSupported * tweak content read * Update Process.php * fix test
Diffstat (limited to 'tests/PHPUnit/Integration')
-rw-r--r--tests/PHPUnit/Integration/CliMulti/ProcessTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PHPUnit/Integration/CliMulti/ProcessTest.php b/tests/PHPUnit/Integration/CliMulti/ProcessTest.php
index 229a687587..e759928b8d 100644
--- a/tests/PHPUnit/Integration/CliMulti/ProcessTest.php
+++ b/tests/PHPUnit/Integration/CliMulti/ProcessTest.php
@@ -106,7 +106,7 @@ class ProcessTest extends \PHPUnit\Framework\TestCase
$this->assertTrue($this->process->isRunning());
$this->assertFalse($this->process->hasFinished());
- File::setFileSize(505);
+ $this->process->writePidFileContent(str_pad('1', 505,'1'));
$this->assertFalse($this->process->isRunning());
$this->assertTrue($this->process->hasFinished());