Mercurial > hg > nginx-tests
comparison upstream_hash_memcached.t @ 614:0597ca82c26a
Tests: respected byteorder value on longsize=4 but USE_64_BIT_INT.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 30 Jun 2015 12:36:48 +0300 |
parents | c0b4ae82fd9d |
children | e9064d691790 |
comparison
equal
deleted
inserted
replaced
613:36a267631e03 | 614:0597ca82c26a |
---|---|
139 | 139 |
140 $memd = new Cache::Memcached::Fast({ ketama_points => 160, servers => | 140 $memd = new Cache::Memcached::Fast({ ketama_points => 160, servers => |
141 [ '127.0.0.1:8081', '127.0.0.1:8082', '127.0.0.1:8083'] }); | 141 [ '127.0.0.1:8081', '127.0.0.1:8082', '127.0.0.1:8083'] }); |
142 | 142 |
143 TODO: { | 143 TODO: { |
144 local $TODO = 'not yet' unless $Config{byteorder} eq '12345678' | 144 local $TODO = 'not yet' unless $Config{byteorder} =~ '1234' |
145 or $t->has_version('1.9.1'); | 145 or $t->has_version('1.9.1'); |
146 | 146 |
147 is_deeply(ngx('/c'), mem($memd), 'cache::memcached::fast'); | 147 is_deeply(ngx('/c'), mem($memd), 'cache::memcached::fast'); |
148 | 148 |
149 } | 149 } |
159 { address => '127.0.0.1:8081', weight => 2 }, | 159 { address => '127.0.0.1:8081', weight => 2 }, |
160 { address => '127.0.0.1:8082', weight => 3 }, | 160 { address => '127.0.0.1:8082', weight => 3 }, |
161 { address => '127.0.0.1:8083', weight => 1 }] }); | 161 { address => '127.0.0.1:8083', weight => 1 }] }); |
162 | 162 |
163 TODO: { | 163 TODO: { |
164 local $TODO = 'not yet' unless $Config{byteorder} eq '12345678' | 164 local $TODO = 'not yet' unless $Config{byteorder} =~ '1234' |
165 or $t->has_version('1.9.1'); | 165 or $t->has_version('1.9.1'); |
166 | 166 |
167 is_deeply(ngx('/cw'), mem($memd), 'cache::memcached::fast weight'); | 167 is_deeply(ngx('/cw'), mem($memd), 'cache::memcached::fast weight'); |
168 | 168 |
169 } | 169 } |