Mercurial > hg > nginx-tests
comparison upstream_hash.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 | 4ceb2d12b7d2 |
children | 6cdfd177319b |
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 rewrite upstream_hash/); | 25 my $t = Test::Nginx->new()->has(qw/http proxy rewrite upstream_hash/)->plan(11); |
26 | 26 |
27 $t->write_file_expand('nginx.conf', <<'EOF'); | 27 $t->write_file_expand('nginx.conf', <<'EOF'); |
28 | 28 |
29 %%TEST_GLOBALS%% | 29 %%TEST_GLOBALS%% |
30 | 30 |
148 } | 148 } |
149 } | 149 } |
150 | 150 |
151 EOF | 151 EOF |
152 | 152 |
153 $t->try_run('no upstream hash')->plan(11); | 153 $t->run(); |
154 | 154 |
155 ############################################################################### | 155 ############################################################################### |
156 | 156 |
157 # Ony requests for absent peer are moved to other peers if hash is consistent. | 157 # Ony requests for absent peer are moved to other peers if hash is consistent. |
158 # Check this by comparing two upstreams with different number of peers. | 158 # Check this by comparing two upstreams with different number of peers. |