From 1e8cf368e8be90ae18960a025f0d3abc25742085 Mon Sep 17 00:00:00 2001 From: Andrey Kostylev Date: Sun, 19 Feb 2017 04:17:23 +0300 Subject: [PATCH] fix broken test --- tests/600-pipe_bind.phpt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/600-pipe_bind.phpt b/tests/600-pipe_bind.phpt index 059485b..cd6d2e3 100644 --- a/tests/600-pipe_bind.phpt +++ b/tests/600-pipe_bind.phpt @@ -11,6 +11,10 @@ uv_listen($a, 8192, function($stream) { $pipe = uv_pipe_init(uv_default_loop(), 0); uv_accept($stream, $pipe); uv_read_start($pipe,function($pipe, $nread, $buffer) use ($stream) { + if ($nread === \UV::EOF) { + return; + } + echo $buffer; uv_read_stop($pipe); uv_close($stream, function() {