1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #44445 from yahonda/diag84688

Support dalli 3.2.1
This commit is contained in:
Matthew Draper 2022-02-16 15:14:01 +10:30 committed by GitHub
commit e69620c69a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -314,8 +314,12 @@ class MemCacheStoreTest < ActiveSupport::TestCase
end end
def servers(cache = @cache) def servers(cache = @cache)
if client(cache).instance_variable_defined?(:@normalized_servers)
client(cache).instance_variable_get(:@normalized_servers)
else
client(cache).instance_variable_get(:@servers) client(cache).instance_variable_get(:@servers)
end end
end
def client(cache = @cache) def client(cache = @cache)
cache.instance_variable_get(:@data) cache.instance_variable_get(:@data)