From b384c696ac9756ce87010f21e8d204b9c58eea2f Mon Sep 17 00:00:00 2001 From: Luke Baker Date: Wed, 2 Oct 2013 10:25:41 -0400 Subject: [PATCH] increase number of appearances required for checking pre-generated cache hit rate --- lib/tasks/test_api.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/test_api.rake b/lib/tasks/test_api.rake index 47327c4..999f202 100644 --- a/lib/tasks/test_api.rake +++ b/lib/tasks/test_api.rake @@ -374,7 +374,7 @@ namespace :test_api do error_message += "Error! Question #{question.id} isn't tracking prompt cache hits and misses accurately! Expected #{yesterday_appearances}, Actual: #{misses+hits}, Hits: #{hits}, Misses: #{misses}\n" end - if yesterday_appearances > 5 # this test isn't worthwhile for small numbers of appearances + if yesterday_appearances > 25 # this test isn't worthwhile for small numbers of appearances miss_rate = misses.to_f / yesterday_appearances.to_f if miss_rate > 0.1 error_message += "Warning! Question #{question.id} has less than 90% of appearances taken from a pre-generated cache! Expected <#{0.1}, Actual: #{miss_rate}, total appearances yesterday: #{yesterday_appearances}\n" -- libgit2 0.21.2