diff --git a/actionpack/test/dispatch/session/mem_cache_store_test.rb b/actionpack/test/dispatch/session/mem_cache_store_test.rb index ac685a7dca..417a8355bf 100644 --- a/actionpack/test/dispatch/session/mem_cache_store_test.rb +++ b/actionpack/test/dispatch/session/mem_cache_store_test.rb @@ -40,7 +40,7 @@ class MemCacheStoreTest < ActionDispatch::IntegrationTest require "dalli" servers = ENV["MEMCACHE_SERVERS"] || "localhost:11211" ss = Dalli::Client.new(servers).stats - raise Dalli::DalliError unless ss[servers] + raise Dalli::DalliError unless ss[servers] || ss[servers + ":11211"] def test_setting_and_getting_session_value with_test_route_set do diff --git a/activesupport/test/cache/stores/mem_cache_store_test.rb b/activesupport/test/cache/stores/mem_cache_store_test.rb index ebbed847bc..aa09819b5e 100644 --- a/activesupport/test/cache/stores/mem_cache_store_test.rb +++ b/activesupport/test/cache/stores/mem_cache_store_test.rb @@ -27,7 +27,7 @@ class MemCacheStoreTest < ActiveSupport::TestCase begin servers = ENV["MEMCACHE_SERVERS"] || "localhost:11211" ss = Dalli::Client.new(servers).stats - raise Dalli::DalliError unless ss[servers] + raise Dalli::DalliError unless ss[servers] || ss[servers + ":11211"] MEMCACHE_UP = true rescue Dalli::DalliError