Skip to content

Commit

Permalink
ExpectMsgAsync (#5932)
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron Stannard <aaron@petabridge.com>
  • Loading branch information
eaba and Aaronontheweb authored May 11, 2022
1 parent 28a26a7 commit e7d7de6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ public ClusterRouterAsk1343BugFixSpec()
{
}


[Fact]
public async Task Should_Ask_Clustered_Pool_Router_and_forward_ask_to_routee()
{
var router = Sys.ActorOf(EchoActor.Props(this, true).WithRouter(FromConfig.Instance), "router1");
Assert.IsType<RoutedActorRef>(router);

var result = await router.Ask<string>("foo");
ExpectMsg<string>().ShouldBe(result);
(await ExpectMsgAsync<string>()).ShouldBe(result);
}

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

var result = await router.Ask<string>("foo");
ExpectMsg<string>().ShouldBe(result);
(await ExpectMsgAsync<string>()).ShouldBe(result);
}

[Fact]
Expand Down

0 comments on commit e7d7de6

Please sign in to comment.