Skip to content

Commit

Permalink
Times should be passed record_time_stat
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Goldstein committed Mar 1, 2012
1 parent 49c14be commit b26b54c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/new_relic/agent/instrumentation/queue_time_test.rb
Expand Up @@ -301,9 +301,9 @@ def test_record_time_stat
end

def test_record_time_stat_with_end_after_start
record_time_stat('WebFrontend/WebServer/foo', 2, 1)
record_time_stat('WebFrontend/WebServer/foo', Time.at(1.0001), Time.at(1))
rescue RuntimeError => e
assert_equal("should not provide an end time less than start time: 1 is less than 2", e.message)
assert_match(/should not provide an end time less than start time/, e.message)
end

def test_convert_to_microseconds
Expand Down

0 comments on commit b26b54c

Please sign in to comment.