Skip to content

Commit 89973f7

Browse files
committed
Increase pkg-config timeout
1 parent 97e58b0 commit 89973f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ComposerIntegration/PhpBinaryPathBasedPlatformRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private function packageForExtension(string $name, string $prettyVersion): Compl
124124
private function detectLibraryWithPkgConfig(string $alias, string $library): void
125125
{
126126
try {
127-
$pkgConfigResult = Process::run(['pkg-config', '--print-provides', '--print-errors', $library], timeout: 10);
127+
$pkgConfigResult = Process::run(['pkg-config', '--print-provides', '--print-errors', $library], timeout: 30);
128128
} catch (ProcessFailedException) {
129129
return;
130130
}

test/unit/ComposerIntegration/PhpBinaryPathBasedPlatformRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public static function installedLibraries(): array
188188
],
189189
static function (array $pkg): bool {
190190
try {
191-
Process::run(['pkg-config', '--print-provides', '--print-errors', $pkg[1]], timeout: 10);
191+
Process::run(['pkg-config', '--print-provides', '--print-errors', $pkg[1]], timeout: 30);
192192

193193
return true;
194194
} catch (ProcessFailedException) {

0 commit comments

Comments
 (0)