Permalink
Browse files

adjust lossiness in test timing

  • Loading branch information...
1 parent 692fcd7 commit 139a4e4f45f38882b38d3ea3f916967120f3d26b @copiousfreetime committed Jan 10, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 spec/timed_metric_spec.rb
@@ -94,7 +94,9 @@
it "keeps track of the last stop time of all the intervals" do
f1 = Time.now.gmtime.to_f * 1_000_000
+ sleep 0.01
5.times { @tm.start ; sleep 0.05 ; @tm.stop }
+ sleep 0.01
f2 = Time.now.gmtime.to_f * 1_000_000
@tm.sampling_stop_time.should be > f1
@tm.sampling_stop_time.should be <= f2

0 comments on commit 139a4e4

Please sign in to comment.