comparison upstream_hash.t @ 595:6cdfd177319b

Tests: fixed typos and misspellings.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 28 May 2015 15:13:55 +0300
parents 907e89fba9c3
children 6bb1f2ccd386
comparison
equal deleted inserted replaced
594:8dd5cf697eae 595:6cdfd177319b
152 152
153 $t->run(); 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 # Only 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.
159 159
160 ok(!cmp_peers([iter('/', 20)], [iter('/2', 20)], 8082), 'inconsistent'); 160 ok(!cmp_peers([iter('/', 20)], [iter('/2', 20)], 8082), 'inconsistent');
161 ok(cmp_peers([iter('/c', 20)], [iter('/c2', 20)], 8082), 'consistent'); 161 ok(cmp_peers([iter('/c', 20)], [iter('/c2', 20)], 8082), 'consistent');
162 ok(cmp_peers([iter('/cw', 20)], [iter('/cw2', 20)], 8082), 'consistent weight'); 162 ok(cmp_peers([iter('/cw', 20)], [iter('/cw2', 20)], 8082), 'consistent weight');