Skip to content

Commit dcbd909

Browse files
committed
fixed HHVM timing issue
1 parent ef2ced8 commit dcbd909

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/StreamSelectLoopTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ public function testSignalInterruptNoStream($sigName, $signal)
6161
// dispatch signal handler once before signal is sent and once after
6262
$this->loop->addTimer(0.01, function() { pcntl_signal_dispatch(); });
6363
$this->loop->addTimer(0.03, function() { pcntl_signal_dispatch(); });
64+
if (defined('HHVM_VERSION')) {
65+
// hhvm startup is slow so we need to add another handler much later
66+
$this->loop->addTimer(0.5, function() { pcntl_signal_dispatch(); });
67+
}
6468

6569
$this->setUpSignalHandler($signal);
6670

0 commit comments

Comments
 (0)