Skip to content

Commit

Permalink
fix tests --filter=[unit]
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Dec 6, 2024
1 parent 1a57df6 commit 62d47da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/swoole_process_pool/worker_exit_1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ $pool->on('workerStart', function (Swoole\Process\Pool $pool, int $workerId) {
echo "worker start\n";
Assert::eq($pool->workerId, $workerId);

Timer::after(100, function () use ($pool, $workerId) {
$pool->shutdown();
});

$count = 0;
while ($GLOBALS['running']) {
Co::sleep(0.03);
echo "sleep\n";
if (++$count === 3) {
$pool->shutdown();
}
}
});

Expand Down

0 comments on commit 62d47da

Please sign in to comment.