Commit c39a3b7a53cb2317c231e3267159373c00f270c8

Authored by Luke Baker
1 parent ee6ef694

add more details to hit and misses cache tracking

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/tasks/test_api.rake
... ... @@ -548,7 +548,7 @@ namespace :test_api do
548 548 yesterday_appearances = question.appearances.count(:conditions => ['date(created_at) = ?', Date.yesterday])
549 549  
550 550 if misses + hits != yesterday_appearances
551   - error_message += "Error! Question #{question.id} isn't tracking prompt cache hits and misses accurately! Expected #{yesterday_appearances}, Actual: #{misses+hits}\n"
  551 + 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"
552 552 end
553 553  
554 554 if yesterday_appearances > 5 # this test isn't worthwhile for small numbers of appearances
... ...