mirror of
https://github.com/php/pie.git
synced 2026-03-23 23:12:17 +01:00
Increase pkg-config timeout
This commit is contained in:
@@ -124,7 +124,7 @@ class PhpBinaryPathBasedPlatformRepository extends PlatformRepository
|
||||
private function detectLibraryWithPkgConfig(string $alias, string $library): void
|
||||
{
|
||||
try {
|
||||
$pkgConfigResult = Process::run(['pkg-config', '--print-provides', '--print-errors', $library], timeout: 10);
|
||||
$pkgConfigResult = Process::run(['pkg-config', '--print-provides', '--print-errors', $library], timeout: 30);
|
||||
} catch (ProcessFailedException) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ final class PhpBinaryPathBasedPlatformRepositoryTest extends TestCase
|
||||
],
|
||||
static function (array $pkg): bool {
|
||||
try {
|
||||
Process::run(['pkg-config', '--print-provides', '--print-errors', $pkg[1]], timeout: 10);
|
||||
Process::run(['pkg-config', '--print-provides', '--print-errors', $pkg[1]], timeout: 30);
|
||||
|
||||
return true;
|
||||
} catch (ProcessFailedException) {
|
||||
|
||||
Reference in New Issue
Block a user