diff options
Diffstat (limited to 'kamon-metrics/src/test')
-rw-r--r-- | kamon-metrics/src/test/scala/kamon/MailboxSizeMetricsSpec.scala | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kamon-metrics/src/test/scala/kamon/MailboxSizeMetricsSpec.scala b/kamon-metrics/src/test/scala/kamon/MailboxSizeMetricsSpec.scala index 7cae30f1..206c58e1 100644 --- a/kamon-metrics/src/test/scala/kamon/MailboxSizeMetricsSpec.scala +++ b/kamon-metrics/src/test/scala/kamon/MailboxSizeMetricsSpec.scala @@ -1,12 +1,16 @@ package kamon -import org.scalatest.WordSpec +import org.scalatest.{WordSpecLike, WordSpec} +import akka.testkit.TestKit +import akka.actor.{Props, ActorSystem} -class MailboxSizeMetricsSpec extends WordSpec { +class MailboxSizeMetricsSpec extends TestKit(ActorSystem("mailbox-size-metrics-spec")) with WordSpecLike { "the mailbox size metrics instrumentation" should { "register a counter for mailbox size upon actor creation" in { + val target = system.actorOf(Props.empty, "sample") + Metrics.registry.getHistograms.get("akka://mailbox-size-metrics-spec/sample:MAILBOX") } } } |