From 0122b8cd8ba26a097f50821e10ed122cc43595ce Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Thu, 8 Nov 2018 02:51:42 +0100 Subject: [PATCH] Fix random build error Request specs could poison the cache since clear_cache! deletes only today and yesterday from the cache. --- spec/models/application_request_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/application_request_spec.rb b/spec/models/application_request_spec.rb index 59d9490a955..256af7a52f8 100644 --- a/spec/models/application_request_spec.rb +++ b/spec/models/application_request_spec.rb @@ -3,7 +3,7 @@ require 'rails_helper' describe ApplicationRequest do before do ApplicationRequest.last_flush = Time.now.utc - ApplicationRequest.clear_cache! + $redis.flushall end after do