From 264e4e35692bbefafd376bc9c87ccbf5ab1c824c Mon Sep 17 00:00:00 2001 From: Diego Date: Wed, 14 May 2014 00:23:05 -0300 Subject: + statsd: fixed StatsDMetricSenderSpec --- .../src/test/scala/kamon/statsd/StatsDMetricSenderSpec.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kamon-statsd/src/test/scala/kamon/statsd/StatsDMetricSenderSpec.scala b/kamon-statsd/src/test/scala/kamon/statsd/StatsDMetricSenderSpec.scala index fb8fe9aa..3cf0a00c 100644 --- a/kamon-statsd/src/test/scala/kamon/statsd/StatsDMetricSenderSpec.scala +++ b/kamon-statsd/src/test/scala/kamon/statsd/StatsDMetricSenderSpec.scala @@ -1,6 +1,6 @@ /* * ========================================================================================= - * Copyright © 2013 the kamon project + * Copyright © 2013-2014 the kamon project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of the License at @@ -93,11 +93,11 @@ class StatsDMetricSenderSpec extends TestKitBase with WordSpecLike with Matchers } "render multiple keys in the same packet using newline as separator" in new UdpListenerFixture { - val firstTestMetricName = "first-test-metric" + val firstTestMetricName = "first-metric" val firstTestMetricKey = buildMetricKey(firstTestMetricName) - val secondTestMetricName = "second-test-metric" + val secondTestMetricName = "second-metric" val secondTestMetricKey = buildMetricKey(secondTestMetricName) - val thirdTestMetricName = "third-test-metric" + val thirdTestMetricName = "third-metric" val thirdTestMetricKey = buildMetricKey(thirdTestMetricName) val firstTestRecorder = HdrRecorder(1000L, 2, Scale.Unit) @@ -122,7 +122,7 @@ class StatsDMetricSenderSpec extends TestKitBase with WordSpecLike with Matchers thirdTestMetricName -> thirdTestRecorder.collect())) val Udp.Send(data, _, _) = udp.expectMsgType[Udp.Send] - //data.utf8String should be(s"$firstTestMetricKey:10|ms|@0.5:11|ms\n$secondTestMetricKey:20|ms:21|ms\n$thirdTestMetricKey:4|c") + data.utf8String should be(s"$firstTestMetricKey:10|ms|@0.5:11|ms\n$secondTestMetricKey:20|ms:21|ms\n$thirdTestMetricKey:4|c") } } -- cgit v1.2.3