Skip to content

Commit

Permalink
fix dispatcher metric tests assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
ivantopo committed Mar 7, 2022
1 parent 34ca886 commit f101473
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class DispatcherMetricsSpec extends TestKit(ActorSystem("DispatcherMetricsSpec")

"pick up default execution contexts provided when creating an actor system when the type is unknown" in {
val dec = new WrappingExecutionContext(ExecutionContext.fromExecutor(Executors.newFixedThreadPool(8)))
val system = ActorSystem(name = "with-default-ec", defaultExecutionContext = Some(dec))
val system = ActorSystem(name = "with-unknown-default-ec", defaultExecutionContext = Some(dec))

val instrumentExecutorsWithSystem = ExecutorMetrics.ThreadsActive.instruments().keys
.filter(_.get(plain("akka.system")) == system.name)
Expand Down

0 comments on commit f101473

Please sign in to comment.