Mercurial > hg > nginx-tests
comparison stream_proxy_bind.t @ 626:5f9dfe85a1f2
Tests: skipped proxy_bind tests on win32.
On some versions, even though '127.0.0.2' exists by default, connecting from
a bound local socket leads to connection timeout.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 08 Jul 2015 16:47:08 +0300 |
parents | b241c3c0119b |
children | e9064d691790 |
comparison
equal
deleted
inserted
replaced
625:0016fe31be13 | 626:5f9dfe85a1f2 |
---|---|
20 ############################################################################### | 20 ############################################################################### |
21 | 21 |
22 select STDERR; $| = 1; | 22 select STDERR; $| = 1; |
23 select STDOUT; $| = 1; | 23 select STDOUT; $| = 1; |
24 | 24 |
25 plan(skip_all => 'win32') if $^O eq 'MSWin32'; | |
25 plan(skip_all => '127.0.0.2 local address required') | 26 plan(skip_all => '127.0.0.2 local address required') |
26 unless defined IO::Socket::INET->new( LocalAddr => '127.0.0.2' ); | 27 unless defined IO::Socket::INET->new( LocalAddr => '127.0.0.2' ); |
27 | 28 |
28 my $t = Test::Nginx->new()->has(qw/http proxy stream/)->plan(1) | 29 my $t = Test::Nginx->new()->has(qw/http proxy stream/)->plan(1) |
29 ->write_file_expand('nginx.conf', <<'EOF'); | 30 ->write_file_expand('nginx.conf', <<'EOF'); |