@@ -142,8 +142,18 @@ $memd = new Cache::Memcached::Fast({ ketama_points => 160, servers => [
142
142
' 127.0.0.1:' . port(8082),
143
143
' 127.0.0.1:' . port(8083)] });
144
144
145
+ # Cache::Memcached::Fast may be incompatible with recent Perl,
146
+ # see https://github.com/JRaspass/Cache-Memcached-Fast/issues/12
147
+
148
+ my $cmf_bug = ! keys %{$memd -> server_versions};
149
+
150
+ SKIP: {
151
+ skip ' Cache::Memcached::Fast bug' , 1 if $cmf_bug ;
152
+
145
153
is_deeply(ngx(' /c' ), mem($memd ), ' cache::memcached::fast' );
146
154
155
+ }
156
+
147
157
$memd = new Cache::Memcached(servers => [
148
158
[ ' 127.0.0.1:' . port(8081), 2 ],
149
159
[ ' 127.0.0.1:' . port(8082), 3 ],
@@ -156,8 +166,13 @@ $memd = new Cache::Memcached::Fast({ ketama_points => 160, servers => [
156
166
{ address => ' 127.0.0.1:' . port(8082), weight => 3 },
157
167
{ address => ' 127.0.0.1:' . port(8083), weight => 1 }] });
158
168
169
+ SKIP: {
170
+ skip ' Cache::Memcached::Fast bug' , 1 if $cmf_bug ;
171
+
159
172
is_deeply(ngx(' /cw' ), mem($memd ), ' cache::memcached::fast weight' );
160
173
174
+ }
175
+
161
176
# ##############################################################################
162
177
163
178
sub ngx {
0 commit comments