Fix random build error

Follow-up to b95165b838
This commit is contained in:
Gerhard Schlager 2019-01-21 22:00:45 +01:00
parent d82628987a
commit a123aafdad
1 changed files with 6 additions and 2 deletions

View File

@ -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)