From 1ee5a236d88eecce4606e6f865ac3c857456c0e8 Mon Sep 17 00:00:00 2001 From: nawarian Date: Mon, 9 Apr 2018 17:24:21 +0200 Subject: [PATCH] Removes I/O dependency at StreamSelectLoopTest --- tests/AbstractLoopTest.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/AbstractLoopTest.php b/tests/AbstractLoopTest.php index dbfc91ed..3d844382 100644 --- a/tests/AbstractLoopTest.php +++ b/tests/AbstractLoopTest.php @@ -579,16 +579,11 @@ public function testSignalsKeepTheLoopRunningAndRemovingItStopsTheLoop() public function testTimerIntervalCanBeFarInFuture() { - // get only one part of the pair to ensure the other side will close immediately - list($stream) = $this->createSocketPair(); - + $loop = $this->loop; // start a timer very far in the future $timer = $this->loop->addTimer(PHP_INT_MAX, function () { }); - // remove stream and timer when the stream is readable (closes) - $loop = $this->loop; - $this->loop->addReadStream($stream, function ($stream) use ($timer, $loop) { - $loop->removeReadStream($stream); + $this->loop->futureTick(function () use ($timer, $loop) { $loop->cancelTimer($timer); }); 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