Skip to content

Commit

Permalink
Increase testSignalsKeepTheLoopRunning timer to 1.6 as it make more s…
Browse files Browse the repository at this point in the history
…ense 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
  • Loading branch information
WyriHaximus committed Nov 15, 2017
1 parent 050abbb commit a00ba1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/AbstractLoopTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,8 @@ public function testSignalsKeepTheLoopRunning()
{
$function = function () {};
$this->loop->addSignal(SIGUSR1, $function);
$this->loop->addTimer(1.51, function () use ($function) {
$this->loop->addTimer(1.6, function () use ($function) {
$this->loop->removeSignal(SIGUSR1, $function);
$this->loop->stop();
});

$this->assertRunSlowerThan(1.5);
Expand Down

0 comments on commit a00ba1b

Please sign in to comment.