Mercurial > hg > nginx-tests
changeset 1222:75a83f36cff0
Tests: made all tests in stream_status_variable.t work on win32.
Use a missing resolver to provoke stream status "500".
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 21 Sep 2017 16:41:27 +0300 |
parents | 852856f8e7dc |
children | 56e7da831f46 |
files | stream_status_variable.t |
diffstat | 1 files changed, 2 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/stream_status_variable.t Wed Sep 20 14:52:12 2017 +0300 +++ b/stream_status_variable.t Thu Sep 21 16:41:27 2017 +0300 @@ -63,8 +63,7 @@ server { listen 127.0.0.1:8084; - proxy_bind 127.0.0.1:$remote_port; - proxy_pass 127.0.0.1:8083; + proxy_pass example.com:$remote_port; access_log %%TESTDIR%%/500.log status; } @@ -92,7 +91,7 @@ stream('127.0.0.1:' . port(8080))->read(); stream('127.0.0.1:' . port(8081))->read(); stream('127.0.0.1:' . port(8082))->read(); -stream('127.0.0.1:' . port(8084))->read() if $^O ne 'MSWin32'; +stream('127.0.0.1:' . port(8084))->read(); my $s = stream('127.0.0.1:' . port(8085)); $s->write('busy'); @@ -104,14 +103,7 @@ is($t->read_file('200.log'), "200\n", 'stream status 200'); is($t->read_file('403.log'), "403\n", 'stream status 403'); - -SKIP: { -skip 'win32', 1 if $^O eq 'MSWin32'; - is($t->read_file('500.log'), "500\n", 'stream status 500'); - -} - is($t->read_file('502.log'), "502\n", 'stream status 502'); is($t->read_file('503.log'), "503\n200\n", 'stream status 503');