# HG changeset patch # User Sergey Kandaurov # Date 1506001287 -10800 # Node ID 75a83f36cff0a18eb3c24da6253690a2b98fb86b # Parent 852856f8e7dc7372817acc6650be2f2a10319dc9 Tests: made all tests in stream_status_variable.t work on win32. Use a missing resolver to provoke stream status "500". diff --git a/stream_status_variable.t b/stream_status_variable.t --- a/stream_status_variable.t +++ b/stream_status_variable.t @@ -63,8 +63,7 @@ stream { 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 @@ EOF 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 @@ undef $s; 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');