From 880a5b7a14a70c39cf1a7b6177381e3381a69c8d Mon Sep 17 00:00:00 2001 From: Ivan Topolnjak Date: Fri, 5 Dec 2014 04:17:29 +0100 Subject: = core: force the tick buffer spec to use the .millis value of MilliTimestamp. --- .../test/scala/kamon/metric/TickMetricSnapshotBufferSpec.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kamon-core') diff --git a/kamon-core/src/test/scala/kamon/metric/TickMetricSnapshotBufferSpec.scala b/kamon-core/src/test/scala/kamon/metric/TickMetricSnapshotBufferSpec.scala index 1a102603..44d19f98 100644 --- a/kamon-core/src/test/scala/kamon/metric/TickMetricSnapshotBufferSpec.scala +++ b/kamon-core/src/test/scala/kamon/metric/TickMetricSnapshotBufferSpec.scala @@ -55,8 +55,8 @@ class TickMetricSnapshotBufferSpec extends TestKitBase with WordSpecLike with Ma within(2 seconds)(expectNoMsg()) val mergedSnapshot = expectMsgType[TickMetricSnapshot] - mergedSnapshot.from should equal(1000) - mergedSnapshot.to should equal(4000) + mergedSnapshot.from.millis should equal(1000) + mergedSnapshot.to.millis should equal(4000) mergedSnapshot.metrics should be('empty) } @@ -70,8 +70,8 @@ class TickMetricSnapshotBufferSpec extends TestKitBase with WordSpecLike with Ma within(2 seconds)(expectNoMsg()) val mergedSnapshot = expectMsgType[TickMetricSnapshot] - mergedSnapshot.from should equal(1000) - mergedSnapshot.to should equal(4000) + mergedSnapshot.from.millis should equal(1000) + mergedSnapshot.to.millis should equal(4000) mergedSnapshot.metrics should not be ('empty) val testMetricSnapshot = mergedSnapshot.metrics(testTraceIdentity).metrics(TraceMetrics.ElapsedTime).asInstanceOf[Histogram.Snapshot] -- cgit v1.2.3