aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/test/scala
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2014-12-05 04:17:29 +0100
committerIvan Topolnjak <ivantopo@gmail.com>2014-12-05 04:17:29 +0100
commit6c99cdf2f8d2988696550c6db1df0a3783bf4986 (patch)
treeeb984f4a10ce81403a5508659089f209ed631f84 /kamon-core/src/test/scala
parent757cd3fa62addda695c8137da8b0ea5648a40eb8 (diff)
downloadKamon-6c99cdf2f8d2988696550c6db1df0a3783bf4986.tar.gz
Kamon-6c99cdf2f8d2988696550c6db1df0a3783bf4986.tar.bz2
Kamon-6c99cdf2f8d2988696550c6db1df0a3783bf4986.zip
= core: force the tick buffer spec to use the .millis value of MilliTimestamp.
Diffstat (limited to 'kamon-core/src/test/scala')
-rw-r--r--kamon-core/src/test/scala/kamon/metric/TickMetricSnapshotBufferSpec.scala8
1 files changed, 4 insertions, 4 deletions
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]