Bugfix 2674 syntax timeout array. (#2675)

Co-authored-by: Dan Shumaker <dshumaker@unleashed-technologies.com>
This commit is contained in:
Dan Shumaker 2021-09-29 13:40:47 -04:00 committed by GitHub
parent 8ebcbea5b6
commit b684696d09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ task('verification', [
task('verification:timeouts', function () { task('verification:timeouts', function () {
try { try {
run("php -r 'while(true){}'", timeout: 1); run("php -r 'while(true){}'", [ 'timeout' => 1 ] );
} catch (TimeoutException $e) { } catch (TimeoutException $e) {
$ps = run("if ps aux | grep '[p]hp -r while(true){}'; then echo still running; else echo ok; fi"); $ps = run("if ps aux | grep '[p]hp -r while(true){}'; then echo still running; else echo ok; fi");
if ($ps != 'ok') { if ($ps != 'ok') {