Skip to content

Commit 5a08e0c

Browse files
committed
Increase test timeout to 300 for extension tests
1 parent 0a6ef1b commit 5a08e0c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

php/BuildPhp/public/Invoke-PhpTests.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ function Invoke-PhpTests {
8888
Set-SnmpTestEnvironment -TestsDirectoryPath "$buildDirectory\$testsDirectory"
8989
}
9090

91+
$testTimeout = "120"
92+
if($TestType -eq "ext") {
93+
$testTimeout = "300"
94+
}
95+
9196
$testResultFile = "$buildDirectory\test-$Arch-$Ts-$Opcache-$TestType.xml"
9297
$testLogFile = "$buildDirectory\test-$Arch-$Ts-$Opcache-$TestType.log"
9398

@@ -101,7 +106,7 @@ function Invoke-PhpTests {
101106
"--offline",
102107
"--show-diff",
103108
"--show-slow", "1000",
104-
"--set-timeout", "120",
109+
"--set-timeout", $testTimeout,
105110
"--temp-source", "$buildDirectory\tmp",
106111
"--temp-target", "$buildDirectory\tmp",
107112
"-r", "$TestType-tests-to-run.txt"

0 commit comments

Comments
 (0)