Skip to content

Commit e7d7de6

Browse files
eabaAaronontheweb
andauthored
ExpectMsgAsync (#5932)
Co-authored-by: Aaron Stannard <[email protected]>
1 parent 28a26a7 commit e7d7de6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/Akka.Cluster.Tests/Routing/ClusterRouterAsk1343BugFixSpec.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ public ClusterRouterAsk1343BugFixSpec()
6868
{
6969
}
7070

71-
71+
7272
[Fact]
7373
public async Task Should_Ask_Clustered_Pool_Router_and_forward_ask_to_routee()
7474
{
7575
var router = Sys.ActorOf(EchoActor.Props(this, true).WithRouter(FromConfig.Instance), "router1");
7676
Assert.IsType<RoutedActorRef>(router);
7777

7878
var result = await router.Ask<string>("foo");
79-
ExpectMsg<string>().ShouldBe(result);
79+
(await ExpectMsgAsync<string>()).ShouldBe(result);
8080
}
8181

8282
[Fact]
@@ -87,7 +87,7 @@ public async Task Should_Ask_Clustered_Group_Router_and_forward_ask_to_routee()
8787
Assert.IsType<RoutedActorRef>(router);
8888

8989
var result = await router.Ask<string>("foo");
90-
ExpectMsg<string>().ShouldBe(result);
90+
(await ExpectMsgAsync<string>()).ShouldBe(result);
9191
}
9292

9393
[Fact]

0 commit comments

Comments
 (0)