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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy