DEV: Clean up some Redis leaks in test env.

This commit is contained in:
Guo Xiang Tan
2020-05-18 17:22:39 +08:00
parent 320b21ab5b
commit d01c336899
8 changed files with 50 additions and 9 deletions

View File

@ -15,6 +15,15 @@ describe Middleware::RequestTracker do
}.merge(opts)
end
before do
ApplicationRequest.enable
end
after do
ApplicationRequest.disable
ApplicationRequest.clear_cache!
end
context "full request" do
before do
@orig = WebCrawlerRequest.autoflush