We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Dalli::Protocol::Binary
Dalli::Server
1 parent 2f8db2d commit 370ef3dCopy full SHA for 370ef3d
activesupport/test/cache/stores/mem_cache_store_test.rb
@@ -288,13 +288,13 @@ def emulating_latency
288
end
289
290
def emulating_unavailability
291
- old_server = Dalli.send(:remove_const, :Server)
292
- Dalli.const_set(:Server, UnavailableDalliServer)
+ old_server = Dalli::Protocol.send(:remove_const, :Binary)
+ Dalli::Protocol.const_set(:Binary, UnavailableDalliServer)
293
294
yield ActiveSupport::Cache::MemCacheStore.new
295
ensure
296
- Dalli.send(:remove_const, :Server)
297
- Dalli.const_set(:Server, old_server)
+ Dalli::Protocol.send(:remove_const, :Binary)
+ Dalli::Protocol.const_set(:Binary, old_server)
298
299
300
def servers(cache = @cache)
0 commit comments