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
1 changed files with 5 additions and 1 deletions

View File

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