Permalink
Browse files

Revert "Fix sampling tests"

This reverts commit ddd173a.
  • Loading branch information...
1 parent f6e44ab commit 03adcbe9055c6e292109846e3787167ff434055d @jstorimer jstorimer committed Sep 19, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/statsd-instrument_test.rb
@@ -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

0 comments on commit 03adcbe

Please sign in to comment.