diff options
author | Jeremy Kemper <jeremykemper@gmail.com> | 2014-03-16 16:06:27 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremykemper@gmail.com> | 2014-03-16 16:06:27 -0700 |
commit | 4ece124396669d3580e7f229ab407a0d4882727a (patch) | |
tree | 7c9006f5bef0ea77963fcb43920b876d07cffcb4 /actionpack/test | |
parent | bb0518891c4c7cc40ff01d90983b83beb61242af (diff) | |
download | rails-4ece124396669d3580e7f229ab407a0d4882727a.tar.gz rails-4ece124396669d3580e7f229ab407a0d4882727a.tar.bz2 rails-4ece124396669d3580e7f229ab407a0d4882727a.zip |
Avoid concurrent test collision on the same memcache server by namespacing keys
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/session/mem_cache_store_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/session/mem_cache_store_test.rb b/actionpack/test/dispatch/session/mem_cache_store_test.rb index e53ce4195b..f3cc4f31d8 100644 --- a/actionpack/test/dispatch/session/mem_cache_store_test.rb +++ b/actionpack/test/dispatch/session/mem_cache_store_test.rb @@ -172,7 +172,7 @@ class MemCacheStoreTest < ActionDispatch::IntegrationTest end @app = self.class.build_app(set) do |middleware| - middleware.use ActionDispatch::Session::MemCacheStore, :key => '_session_id' + middleware.use ActionDispatch::Session::MemCacheStore, :key => '_session_id', :namespace => "mem_cache_store_test:#{SecureRandom.hex(10)}" middleware.delete "ActionDispatch::ShowExceptions" end |