Skip to content

Commit

Permalink
Make histogram test work in 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
eric committed Jul 3, 2012
1 parent c0808dd commit c2d04f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/histogram_test.rb
Expand Up @@ -187,7 +187,7 @@ def test_exponential_sample_snapshot_threaded
end end


def test_long_idle_sample def test_long_idle_sample
Time.stubs(:now).returns(Time.new(2000)) Time.stubs(:now).returns(Time.at(2000))
sample = Metriks::ExponentiallyDecayingSample.new(Metriks::Histogram::DEFAULT_SAMPLE_SIZE, Metriks::Histogram::DEFAULT_ALPHA) sample = Metriks::ExponentiallyDecayingSample.new(Metriks::Histogram::DEFAULT_SAMPLE_SIZE, Metriks::Histogram::DEFAULT_ALPHA)
Time.unstub(:now) Time.unstub(:now)
@histogram = Metriks::Histogram.new(sample) @histogram = Metriks::Histogram.new(sample)
Expand Down

0 comments on commit c2d04f4

Please sign in to comment.