blob: 206c58e1c9e3e1f3c0a02c36fd6fe11d3666d72e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package kamon
import org.scalatest.{WordSpecLike, WordSpec}
import akka.testkit.TestKit
import akka.actor.{Props, ActorSystem}
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")
}
}
}
|