Skip to content

Commit a00ba1b

Browse files
committed
Increase testSignalsKeepTheLoopRunning timer to 1.6 as it make more sense since it's supposed to run slower then 1.5, and removed $loop->stop() as that is supposed to happen once the signal listener has been removed
1 parent 050abbb commit a00ba1b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/AbstractLoopTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,8 @@ public function testSignalsKeepTheLoopRunning()
428428
{
429429
$function = function () {};
430430
$this->loop->addSignal(SIGUSR1, $function);
431-
$this->loop->addTimer(1.51, function () use ($function) {
431+
$this->loop->addTimer(1.6, function () use ($function) {
432432
$this->loop->removeSignal(SIGUSR1, $function);
433-
$this->loop->stop();
434433
});
435434

436435
$this->assertRunSlowerThan(1.5);

0 commit comments

Comments
 (0)