Skip to content

Commit b98c8a4

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 076ab72 commit b98c8a4

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
@@ -555,9 +555,8 @@ public function testSignalsKeepTheLoopRunning()
555555
$loop = $this->loop;
556556
$function = function () {};
557557
$this->loop->addSignal(SIGUSR1, $function);
558-
$this->loop->addTimer(1.51, function () use ($function) {
558+
$this->loop->addTimer(1.6, function () use ($function) {
559559
$this->loop->removeSignal(SIGUSR1, $function);
560-
$this->loop->stop();
561560
});
562561

563562
$this->assertRunSlowerThan(1.5);

0 commit comments

Comments
 (0)