diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-12-05 03:41:25 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-12-05 03:41:25 +0100 |
commit | 757cd3fa62addda695c8137da8b0ea5648a40eb8 (patch) | |
tree | 002904e39df71802140a75e64dba0965664d9ed2 /kamon-core/src/test/scala/kamon/metric | |
parent | b32f871adec935090f54c56418e97d175243d0de (diff) | |
download | Kamon-757cd3fa62addda695c8137da8b0ea5648a40eb8.tar.gz Kamon-757cd3fa62addda695c8137da8b0ea5648a40eb8.tar.bz2 Kamon-757cd3fa62addda695c8137da8b0ea5648a40eb8.zip |
= core,datadog,statsd: migrate from plain Long to MilliTimestamp.
Diffstat (limited to 'kamon-core/src/test/scala/kamon/metric')
-rw-r--r-- | kamon-core/src/test/scala/kamon/metric/TickMetricSnapshotBufferSpec.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kamon-core/src/test/scala/kamon/metric/TickMetricSnapshotBufferSpec.scala b/kamon-core/src/test/scala/kamon/metric/TickMetricSnapshotBufferSpec.scala index 79c9c63b..1a102603 100644 --- a/kamon-core/src/test/scala/kamon/metric/TickMetricSnapshotBufferSpec.scala +++ b/kamon-core/src/test/scala/kamon/metric/TickMetricSnapshotBufferSpec.scala @@ -17,7 +17,7 @@ package kamon.metric import com.typesafe.config.ConfigFactory -import kamon.Kamon +import kamon.{MilliTimestamp, Kamon} import kamon.metric.instrument.Histogram import kamon.metric.instrument.Histogram.MutableRecord import org.scalatest.{ Matchers, WordSpecLike } @@ -92,20 +92,20 @@ class TickMetricSnapshotBufferSpec extends TestKitBase with WordSpecLike with Ma val testTraceIdentity = TraceMetrics("buffer-spec-test-trace") val traceRecorder = Kamon(Metrics).register(testTraceIdentity, TraceMetrics.Factory).get - val firstEmpty = TickMetricSnapshot(1000, 2000, Map.empty) - val secondEmpty = TickMetricSnapshot(2000, 3000, Map.empty) - val thirdEmpty = TickMetricSnapshot(3000, 4000, Map.empty) + val firstEmpty = TickMetricSnapshot(new MilliTimestamp(1000), new MilliTimestamp(2000), Map.empty) + val secondEmpty = TickMetricSnapshot(new MilliTimestamp(2000), new MilliTimestamp(3000), Map.empty) + val thirdEmpty = TickMetricSnapshot(new MilliTimestamp(3000), new MilliTimestamp(4000), Map.empty) traceRecorder.elapsedTime.record(10L) traceRecorder.elapsedTime.record(20L) traceRecorder.elapsedTime.record(30L) - val firstNonEmpty = TickMetricSnapshot(1000, 2000, Map( + val firstNonEmpty = TickMetricSnapshot(new MilliTimestamp(1000), new MilliTimestamp(2000), Map( (testTraceIdentity -> traceRecorder.collect(collectionContext)))) traceRecorder.elapsedTime.record(10L) traceRecorder.elapsedTime.record(10L) traceRecorder.elapsedTime.record(300L) - val secondNonEmpty = TickMetricSnapshot(1000, 2000, Map( + val secondNonEmpty = TickMetricSnapshot(new MilliTimestamp(1000), new MilliTimestamp(2000), Map( (testTraceIdentity -> traceRecorder.collect(collectionContext)))) } } |