comparison proxy_variables.t @ 568:907e89fba9c3

Tests: removed TODO and try_run() checks for legacy versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Sun, 03 May 2015 12:45:09 +0300
parents 4bcf8bc2bafe
children ef2b435c1048
comparison
equal deleted inserted replaced
567:22bade4c7e12 568:907e89fba9c3
20 ############################################################################### 20 ###############################################################################
21 21
22 select STDERR; $| = 1; 22 select STDERR; $| = 1;
23 select STDOUT; $| = 1; 23 select STDOUT; $| = 1;
24 24
25 my $t = Test::Nginx->new()->has(qw/http proxy/) 25 my $t = Test::Nginx->new()->has(qw/http proxy/)->plan(8)
26 ->write_file_expand('nginx.conf', <<'EOF'); 26 ->write_file_expand('nginx.conf', <<'EOF');
27 27
28 %%TEST_GLOBALS%% 28 %%TEST_GLOBALS%%
29 29
30 daemon off; 30 daemon off;
61 } 61 }
62 62
63 EOF 63 EOF
64 64
65 $t->run_daemon(\&http_daemon, 8081); 65 $t->run_daemon(\&http_daemon, 8081);
66 $t->try_run('no upstream_header_time')->plan(8); 66 $t->run()->waitforsocket('127.0.0.1:8081');
67
68 $t->waitforsocket('127.0.0.1:8081');
69 67
70 ############################################################################### 68 ###############################################################################
71 69
72 my $re = qr/(\d\.\d{3})/; 70 my $re = qr/(\d\.\d{3})/;
73 my ($ht, $rt, $ht2, $rt2); 71 my ($ht, $rt, $ht2, $rt2);