From 4b05928f97f20ebadf86e943a992a8729c6dfdbe Mon Sep 17 00:00:00 2001 From: Diego Date: Sat, 7 Jun 2014 17:13:44 -0300 Subject: = core: remove ContinuousHdrRecorder from ActorMetrics * in the case that we get a negative number, change the number to positive in MinMaxCounter in order to avoid IndexOutOfBoundsException. --- kamon-core/src/test/scala/kamon/metrics/ActorMetricsSpec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kamon-core/src/test/scala/kamon/metrics') diff --git a/kamon-core/src/test/scala/kamon/metrics/ActorMetricsSpec.scala b/kamon-core/src/test/scala/kamon/metrics/ActorMetricsSpec.scala index 7430e0f0..645ca96a 100644 --- a/kamon-core/src/test/scala/kamon/metrics/ActorMetricsSpec.scala +++ b/kamon-core/src/test/scala/kamon/metrics/ActorMetricsSpec.scala @@ -87,9 +87,9 @@ class ActorMetricsSpec extends TestKitBase with WordSpecLike with Matchers { // process the tick in which the actor is stalled. val stalledTickMetrics = expectActorMetrics("user/tracked-mailbox-size-queueing-up", metricsListener, 2 seconds) - stalledTickMetrics.mailboxSize.numberOfMeasurements should equal(31) + stalledTickMetrics.mailboxSize.numberOfMeasurements should equal(30) // only the automatic last-value recording should be taken, and includes the message being currently processed. - stalledTickMetrics.mailboxSize.measurements should contain only (Measurement(10, 31)) + stalledTickMetrics.mailboxSize.measurements should contain only (Measurement(10, 30)) stalledTickMetrics.mailboxSize.min should equal(10) stalledTickMetrics.mailboxSize.max should equal(10) stalledTickMetrics.processingTime.numberOfMeasurements should be(0L) -- cgit v1.2.3