Commit 2d846835ee3493d39353f35f9ec57615a32285ba
1 parent
bacbab7d
Exists in
master
and in
1 other branch
skip appearance test for certain questions
Early on questions did not have data on loser, so we need to skip those questions when running the appearance > wins + losses + skips test.
Showing
1 changed file
with
5 additions
and
3 deletions
Show diff stats
lib/tasks/test_api.rake
... | ... | @@ -459,9 +459,11 @@ namespace :test_api do |
459 | 459 | print "Either 0 or 100 This score is wrong! #{choice.id} , Question ID: #{question.id}, #{cached_score}, #{generated_score}, updated: #{choice.updated_at}\n" |
460 | 460 | end |
461 | 461 | |
462 | - message, error_occurred = verify_choice_appearances_and_votes(choice) | |
463 | - if error_occurred | |
464 | - error_message += message | |
462 | + unless question_has_votes_before_2010_02_17 | |
463 | + message, error_occurred = verify_choice_appearances_and_votes(choice) | |
464 | + if error_occurred | |
465 | + error_message += message | |
466 | + end | |
465 | 467 | end |
466 | 468 | |
467 | 469 | ... | ... |