From 56fd3e1cd4281552ebcc88d58576f3944812f785 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 28 Jul 2017 16:59:25 -0400 Subject: [PATCH] attempt to stablise flaky spec --- spec/components/distributed_cache_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/components/distributed_cache_spec.rb b/spec/components/distributed_cache_spec.rb index f1deda95d28..2d45354e50d 100644 --- a/spec/components/distributed_cache_spec.rb +++ b/spec/components/distributed_cache_spec.rb @@ -3,6 +3,10 @@ require 'distributed_cache' describe DistributedCache do + before :all do + $redis.flushall + end + let! :cache1 do DistributedCache.new("test") end