fix broken test

This commit is contained in:
Andrey Kostylev 2017-02-19 04:17:23 +03:00
parent 5e0cd202cb
commit 1e8cf368e8

View File

@ -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() {