Skip to content

Commit

Permalink
Revert "Fix sampling tests"
Browse files Browse the repository at this point in the history
This reverts commit ddd173a.
  • Loading branch information
jstorimer committed Sep 19, 2012
1 parent f6e44ab commit 03adcbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/statsd-instrument_test.rb
Expand Up @@ -161,15 +161,15 @@ def test_instrumenting_class_method

def test_count_with_sampling
StatsD.unstub(:increment)
StatsD.stubs(:rand).returns(0.1)
StatsD.stubs(:rand).returns(0.6)
StatsD.logger.expects(:info).never

StatsD.increment('sampling.foo.bar', 1, 0.6)
StatsD.increment('sampling.foo.bar', 1, 0.1)
end

def test_count_with_successful_sample
StatsD.unstub(:increment)
StatsD.stubs(:rand).returns(0.2)
StatsD.stubs(:rand).returns(0.01)
StatsD.logger.expects(:info).once.with do |string|
string.include?('@0.1')
end
Expand Down

0 comments on commit 03adcbe

Please sign in to comment.