Skip to content

Commit

Permalink
Increase sleeping time for robust order (#1206)
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Shumilov <[email protected]>
  • Loading branch information
PetrShumilov authored Jan 13, 2025
1 parent 9c2ca0c commit e997390
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/phpt/fork/004_sched_yield_sleep.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
1
2
3
waited 0.03
waited 1
waited 0.01
waited 0.02
waited 0.1
<?php
exit;
#endif
Expand All @@ -24,9 +24,9 @@ function f($x, $y) {
}

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

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

0 comments on commit e997390

Please sign in to comment.