Fix random build error

Fix random build error

Follow-up to b95165b83825e4c8ac511309ff988285f7dc70b8

diff --git a/spec/models/report_spec.rb b/spec/models/report_spec.rb
index 04f09de..b0ddc29 100644
--- a/spec/models/report_spec.rb
+++ b/spec/models/report_spec.rb
@@ -1098,7 +1098,12 @@ describe Report do
     include_examples "no data"
   end
 
-  describe "report_top_uploads" do
+  describe "consolidated_page_views" do
+    before do
+      freeze_time(Time.now.at_midnight)
+      ApplicationRequest.clear_cache!
+    end
+
     after do
       ApplicationRequest.clear_cache!
     end
@@ -1115,7 +1120,6 @@ describe Report do
 
     context "with data" do
       it "works" do
-        freeze_time(Time.now.at_midnight)
         3.times { ApplicationRequest.increment!(:page_view_crawler) }
         2.times { ApplicationRequest.increment!(:page_view_logged_in) }
         ApplicationRequest.increment!(:page_view_anon)

GitHub sha: a123aafd

2 Likes