aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/cache/behaviors/connection_pool_behavior.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2018-02-14 18:23:54 -0500
committerRafael Mendonça França <rafaelmfranca@gmail.com>2018-02-14 18:23:54 -0500
commit957ca2ed4cd355198374cff19eff0e9a15af4fef (patch)
treed8a1e6109269daabadf35d10d056d758a19b7d72 /activesupport/test/cache/behaviors/connection_pool_behavior.rb
parentfa9e791e014a650f5ea6a14b283fed9621fc83e2 (diff)
parentdc407392cd6527a9902e91efabedbdced43594e1 (diff)
downloadrails-957ca2ed4cd355198374cff19eff0e9a15af4fef.tar.gz
rails-957ca2ed4cd355198374cff19eff0e9a15af4fef.tar.bz2
rails-957ca2ed4cd355198374cff19eff0e9a15af4fef.zip
Merge pull request #31866 from fatkodima/redis_cache-connection_pool
Add support for connection pooling on RedisCacheStore
Diffstat (limited to 'activesupport/test/cache/behaviors/connection_pool_behavior.rb')
-rw-r--r--activesupport/test/cache/behaviors/connection_pool_behavior.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/activesupport/test/cache/behaviors/connection_pool_behavior.rb b/activesupport/test/cache/behaviors/connection_pool_behavior.rb
index 0d46f88552..a0dcc8199c 100644
--- a/activesupport/test/cache/behaviors/connection_pool_behavior.rb
+++ b/activesupport/test/cache/behaviors/connection_pool_behavior.rb
@@ -6,7 +6,7 @@ module ConnectionPoolBehavior
emulating_latency do
begin
- cache = ActiveSupport::Cache.lookup_store(store, pool_size: 2, pool_timeout: 1)
+ cache = ActiveSupport::Cache.lookup_store(store, { pool_size: 2, pool_timeout: 1 }.merge(store_options))
cache.clear
threads = []
@@ -33,7 +33,7 @@ module ConnectionPoolBehavior
def test_no_connection_pool
emulating_latency do
begin
- cache = ActiveSupport::Cache.lookup_store(store)
+ cache = ActiveSupport::Cache.lookup_store(store, store_options)
cache.clear
threads = []
@@ -54,4 +54,7 @@ module ConnectionPoolBehavior
end
end
end
+
+ private
+ def store_options; {}; end
end