mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Bugfix 2674 syntax timeout array. (#2675)
Co-authored-by: Dan Shumaker <dshumaker@unleashed-technologies.com>
This commit is contained in:
parent
8ebcbea5b6
commit
b684696d09
@ -9,7 +9,7 @@ task('verification', [
|
||||
|
||||
task('verification:timeouts', function () {
|
||||
try {
|
||||
run("php -r 'while(true){}'", timeout: 1);
|
||||
run("php -r 'while(true){}'", [ 'timeout' => 1 ] );
|
||||
} catch (TimeoutException $e) {
|
||||
$ps = run("if ps aux | grep '[p]hp -r while(true){}'; then echo still running; else echo ok; fi");
|
||||
if ($ps != 'ok') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user