aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJeremy Kemper <jeremykemper@gmail.com>2014-03-16 16:06:27 -0700
committerJeremy Kemper <jeremykemper@gmail.com>2014-03-16 16:06:27 -0700
commit4ece124396669d3580e7f229ab407a0d4882727a (patch)
tree7c9006f5bef0ea77963fcb43920b876d07cffcb4 /actionpack
parentbb0518891c4c7cc40ff01d90983b83beb61242af (diff)
downloadrails-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')
-rw-r--r--actionpack/test/dispatch/session/mem_cache_store_test.rb2
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