Skip to content
Browse files

preventing memcached initialization errors with default servers list [#…

…4921 state:resolved]

As of this writing the JRuby client does not support a default port.

Signed-off-by: Xavier Noria <>
  • Loading branch information...
calavera authored and fxn committed Jun 21, 2010
1 parent 256a33d commit b8330a22619f647f16a671c1ad58730d8896f806
@@ -35,7 +35,7 @@ module Response # :nodoc:
def self.build_mem_cache(*addresses)
addresses = addresses.flatten
options = addresses.extract_options!
addresses = ["localhost"] if addresses.empty?
addresses = ["localhost:11211"] if addresses.empty?, options)

@@ -25,7 +25,7 @@
def uses_memcached(test_name)
require 'memcache'
rescue MemCache::MemCacheError
$stderr.puts "Skipping #{test_name} tests. Start memcached and try again."

0 comments on commit b8330a2

Please sign in to comment.
You can’t perform that action at this time.