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 | aca5fa2587488cbdfe4b6c774b247b0d3bd1367c (patch) | |
tree | 667cad5239569602ff2a772426917080c316123e /kamon-core/src/test/scala/kamon/metric | |
parent | 27c580e6717e32f17ef4e567e0b57182600a016f (diff) | |
parent | 25a51121f1dd155a043fc60006e789c5e1676a8d (diff) | |
download | Kamon-aca5fa2587488cbdfe4b6c774b247b0d3bd1367c.tar.gz Kamon-aca5fa2587488cbdfe4b6c774b247b0d3bd1367c.tar.bz2 Kamon-aca5fa2587488cbdfe4b6c774b247b0d3bd1367c.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/scala/kamon/metric')
-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 { |