Skip to content

Commit

Permalink
Increase sleeping time for robust order
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Shumilov <[email protected]>
  • Loading branch information
PetrShumilov committed Jan 10, 2025
1 parent 9c2ca0c commit d219ae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/phpt/fork/004_sched_yield_sleep.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ function f($x, $y) {
}

$ids = [];
$ids[] = fork(f(0.03, 3));
$ids[] = fork(f(2.0, 3));
$ids[] = fork(f(0.01, 1));
$ids[] = fork(f(0.02, 2));
$ids[] = fork(f(0.2, 2));

foreach ($ids as $id) {
echo "waited ". wait($id) ."\n";
Expand Down

0 comments on commit d219ae6

Please sign in to comment.