diff options
author | Diego Parra <diegolparra@gmail.com> | 2016-04-22 01:17:30 -0300 |
---|---|---|
committer | Diego Parra <diegolparra@gmail.com> | 2016-04-22 01:17:30 -0300 |
commit | 4f5bc3c5bbcddf3ea88f2573bc8021c0afd88999 (patch) | |
tree | 77fc1d4fde5e8fc2006c520c9c2e3f3807ac0a25 /kamon-core/src/test | |
parent | a96d9e0ac5fafd29e2bfc2e4ae10a673690f1e42 (diff) | |
parent | 63321f6467f173dc8ca16ed9e7b048b484d681e9 (diff) | |
download | Kamon-4f5bc3c5bbcddf3ea88f2573bc8021c0afd88999.tar.gz Kamon-4f5bc3c5bbcddf3ea88f2573bc8021c0afd88999.tar.bz2 Kamon-4f5bc3c5bbcddf3ea88f2573bc8021c0afd88999.zip |
Merge pull request #335 from ivantopo/issue-#232
core: catch any exception being thrown when recording values on histograms
Diffstat (limited to 'kamon-core/src/test')
-rw-r--r-- | kamon-core/src/test/scala/kamon/metric/instrument/HistogramSpec.scala | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kamon-core/src/test/scala/kamon/metric/instrument/HistogramSpec.scala b/kamon-core/src/test/scala/kamon/metric/instrument/HistogramSpec.scala index adfcd826..dd60fee1 100644 --- a/kamon-core/src/test/scala/kamon/metric/instrument/HistogramSpec.scala +++ b/kamon-core/src/test/scala/kamon/metric/instrument/HistogramSpec.scala @@ -32,10 +32,8 @@ class HistogramSpec extends WordSpec with Matchers { histogram.record(10000) } - "fail when recording values higher than the highest trackable value" in new HistogramFixture { - intercept[IndexOutOfBoundsException] { - histogram.record(1000000) - } + "not fail when recording values higher than the highest trackable value" in new HistogramFixture { + histogram.record(Long.MaxValue) } "reset all recorded levels to zero after a snapshot collection" in new HistogramFixture { |