Commit 6a05bed347bd91af9d4ec514d274654bdb841d5c

Authored by Luke Baker
1 parent a15523ec

add newline to cleanup output of test

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
lib/tasks/test_api.rake
@@ -481,21 +481,21 @@ namespace :test_api do @@ -481,21 +481,21 @@ namespace :test_api do
481 # Subtracting DateTime objects results in the difference in days 481 # Subtracting DateTime objects results in the difference in days
482 server_response_time = v.created_at.to_f - v.appearance.created_at.to_f 482 server_response_time = v.created_at.to_f - v.appearance.created_at.to_f
483 if server_response_time < 0 483 if server_response_time < 0
484 - the_error_msg = "Error! Vote #{v.id} was created before the appearance associated with it: Appearance id: #{v.appearance.id}, Vote creation time: #{v.created_at.to_s}, Appearance creation time: #{v.appearance.created_at.to_s}\n" 484 + the_error_msg = "Error! Vote #{v.id} was created before the appearance associated with it: Appearance id: #{v.appearance.id}, Vote creation time: #{v.created_at.to_s}, Appearance creation time: #{v.appearance.created_at.to_s}\n\n"
485 485
486 error_message += the_error_msg 486 error_message += the_error_msg
487 print "Error!" + the_error_msg 487 print "Error!" + the_error_msg
488 end 488 end
489 489
490 if v.time_viewed && v.time_viewed/1000 > server_response_time 490 if v.time_viewed && v.time_viewed/1000 > server_response_time
491 - the_error_msg = "Warning! Vote #{v.id} with Appearance #{v.appearance.id}, has a longer client response time than is possible. Server roundtrip time is: #{v.created_at.to_f - v.appearance.created_at.to_f} seconds, but client side response time is: #{v.time_viewed.to_f / 1000.0} seconds\n" 491 + the_error_msg = "Warning! Vote #{v.id} with Appearance #{v.appearance.id}, has a longer client response time than is possible. Server roundtrip time is: #{v.created_at.to_f - v.appearance.created_at.to_f} seconds, but client side response time is: #{v.time_viewed.to_f / 1000.0} seconds\n\n"
492 492
493 error_message += the_error_msg 493 error_message += the_error_msg
494 print the_error_msg 494 print the_error_msg
495 495
496 elsif v.time_viewed.nil? 496 elsif v.time_viewed.nil?
497 if v.created_at > recording_client_time_start_date && v.missing_response_time_exp != 'invalid' 497 if v.created_at > recording_client_time_start_date && v.missing_response_time_exp != 'invalid'
498 - the_error_msg = "Error! Vote #{v.id} with Appearance #{v.appearance.id}, does not have a client response, even though it should! Vote creation time: #{v.created_at.to_s}, Appearance creation time: #{v.appearance.created_at.to_s}, Client side response time: #{v.time_viewed}\n" 498 + the_error_msg = "Error! Vote #{v.id} with Appearance #{v.appearance.id}, does not have a client response, even though it should! Vote creation time: #{v.created_at.to_s}, Appearance creation time: #{v.appearance.created_at.to_s}, Client side response time: #{v.time_viewed}\n\n"
499 error_message += the_error_msg 499 error_message += the_error_msg
500 print the_error_msg 500 print the_error_msg
501 end 501 end