File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -579,16 +579,11 @@ public function testSignalsKeepTheLoopRunningAndRemovingItStopsTheLoop()
579
579
580
580
public function testTimerIntervalCanBeFarInFuture ()
581
581
{
582
- // get only one part of the pair to ensure the other side will close immediately
583
- list ($ stream ) = $ this ->createSocketPair ();
584
-
582
+ $ loop = $ this ->loop ;
585
583
// start a timer very far in the future
586
584
$ timer = $ this ->loop ->addTimer (PHP_INT_MAX , function () { });
587
585
588
- // remove stream and timer when the stream is readable (closes)
589
- $ loop = $ this ->loop ;
590
- $ this ->loop ->addReadStream ($ stream , function ($ stream ) use ($ timer , $ loop ) {
591
- $ loop ->removeReadStream ($ stream );
586
+ $ this ->loop ->futureTick (function () use ($ timer , $ loop ) {
592
587
$ loop ->cancelTimer ($ timer );
593
588
});
594
589
You can’t perform that action at this time.
0 commit comments