Mercurial > hg > nginx-tests
diff stream_realip.t @ 1030:094e1247740f
Tests: simplified stream_realip.t and unbroke it on win32.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 08 Sep 2016 16:29:03 +0300 |
parents | 403709429c3b |
children | 8979f0d86c29 |
line wrap: on
line diff
--- a/stream_realip.t +++ b/stream_realip.t @@ -91,9 +91,7 @@ is(stream('127.0.0.1:' . port(8083)) ->io("PROXY TCP4 192.0.2.1 192.0.2.2 1234 5678${CRLF}"), '192.0.2.1:1234', 'server'); -is(stream('127.0.0.1:' . port(8084)) - ->io("PROXY TCP4 192.0.2.1 192.0.2.2 1234 5678${CRLF}"), - ':', 'server off'); +is(stream('127.0.0.1:' . port(8084))->read(), ':', 'server off'); is(stream('127.0.0.1:' . port(8085)) ->io("PROXY TCP4 192.0.2.1 192.0.2.2 1234 5678${CRLF}close"),