Skip to content

Commit

Permalink
Increase script sleep in FPM process idle test
Browse files Browse the repository at this point in the history
  • Loading branch information
bukka committed Nov 20, 2021
1 parent e81ad63 commit fc67967
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sapi/fpm/tests/proc-idle-timeout.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ FPM: Process manager config pm.process_idle_timeout
<?php
include "skipif.inc";
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
echo "skip Test fails in CI\n";
?>
--FILE--
<?php
Expand All @@ -24,7 +23,7 @@ EOT;

$code = <<<EOT
<?php
usleep(200);
usleep(300000);
EOT;

$tester = new FPM\Tester($cfg, $code);
Expand All @@ -35,7 +34,7 @@ $tester->status([
'total processes' => 2,
]);
// wait for process idle timeout
sleep(6);
sleep(5);
$tester->status([
'total processes' => 1,
]);
Expand Down

0 comments on commit fc67967

Please sign in to comment.