From 4fe93e85bb57a2e5e3ccc65f0d8bac16bfc610a6 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Thu, 16 Sep 2021 09:22:32 +0200 Subject: [PATCH] Build akka-bench-jmh with scala3 (#30682) Co-authored-by: Renato Cavalcanti --- .github/workflows/scala3-build.yml | 1 + .../src/main/scala/akka/actor/typed/TypedActorBenchmark.scala | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scala3-build.yml b/.github/workflows/scala3-build.yml index a892c20c85..f7b9196fdc 100644 --- a/.github/workflows/scala3-build.yml +++ b/.github/workflows/scala3-build.yml @@ -21,6 +21,7 @@ jobs: command: - akka-testkit/test akka-actor-tests/test - akka-actor-testkit-typed/test akka-actor-typed-tests/test + - akka-bench-jmh/test - akka-cluster/Test/compile akka-cluster-tools/test akka-distributed-data/test - akka-coordination/test - akka-discovery/test diff --git a/akka-bench-jmh/src/main/scala/akka/actor/typed/TypedActorBenchmark.scala b/akka-bench-jmh/src/main/scala/akka/actor/typed/TypedActorBenchmark.scala index a335b0a9f6..158f40cc3e 100644 --- a/akka-bench-jmh/src/main/scala/akka/actor/typed/TypedActorBenchmark.scala +++ b/akka-bench-jmh/src/main/scala/akka/actor/typed/TypedActorBenchmark.scala @@ -97,7 +97,7 @@ class TypedActorBenchmark { @Benchmark @OperationsPerInvocation(totalMessages) def echo(): Unit = { - Await.result(system.ask(Start), timeout) + Await.result(system.ask(Start(_)), timeout) } }