Skip to content

A platform for community discussion. Free, open, simple.

improve spec stability

Sam9c91c2509e80
diff --git a/spec/components/distributed_cache_spec.rb b/spec/components/distributed_cache_spec.rb
index e1256346acb..a1b442edf17 100644
--- a/spec/components/distributed_cache_spec.rb
+++ b/spec/components/distributed_cache_spec.rb
@@ -17,12 +17,16 @@ describe DistributedCache do
DistributedCache.new(name, manager: @manager)
end
+ let :cache_name do
+ SecureRandom.hex
+ end
+
let! :cache1 do
- cache("test")
+ cache(cache_name)
end
let! :cache2 do
- cache("test")
+ cache(cache_name)
end
it 'allows us to store Set' do