Mercurial > hg > nginx-tests
diff image_filter.t @ 974:882267679006
Tests: simplified parallel modifications in tests.
Mail tests were simplified in c227348453db.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Tue, 12 Jul 2016 17:39:03 +0300 |
parents | ed99be008b52 |
children | 104701299b91 |
line wrap: on
line diff
--- a/image_filter.t +++ b/image_filter.t @@ -50,7 +50,7 @@ http { } server { - listen 127.0.0.1:%%PORT_0%%; + listen 127.0.0.1:8080; server_name localhost; location /size { @@ -154,7 +154,7 @@ http { location /proxy_buffer { image_filter rotate 90; image_filter_buffer 20; - proxy_pass http://127.0.0.1:%%PORT_1%%/; + proxy_pass http://127.0.0.1:8081/; proxy_buffering off; proxy_buffer_size 512; } @@ -177,7 +177,7 @@ my $black = $im->colorAllocate(0, 0, 0); $t->write_file('txt', 'SEE-THIS'); $t->run_daemon(\&http_daemon, $t); -$t->run()->waitforsocket('127.0.0.1:' . port(1)); +$t->run()->waitforsocket('127.0.0.1:' . port(8081)); ############################################################################### @@ -303,7 +303,7 @@ sub http_daemon { my $server = IO::Socket::INET->new( Proto => 'tcp', LocalHost => '127.0.0.1', - LocalPort => port(1), + LocalPort => port(8081), Listen => 5, Reuse => 1 )