Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port Akka.Tests.Actor tests to async/await - BugFix2176Spec #5826

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/core/Akka.Tests/Actor/BugFix2176Spec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// </copyright>
//-----------------------------------------------------------------------

using System.Threading.Tasks;
using Akka.Actor;
using Akka.TestKit;
using Xunit;
Expand Down Expand Up @@ -55,17 +56,17 @@ protected override void PreStart()
}

[Fact]
public void Fix2176_Constructor_Should_create_valid_child_actor()
public async Task Fix2176_Constructor_Should_create_valid_child_actor()
{
var actor = Sys.ActorOf(Props.Create(() => new Actor1NonAsync(TestActor)), "actor1");
ExpectMsg("started");
await ExpectMsgAsync("started");
}

[Fact]
public void Fix2176_RunTask_Should_create_valid_child_actor()
public async Task Fix2176_RunTask_Should_create_valid_child_actor()
{
var actor = Sys.ActorOf(Props.Create(() => new Actor1(TestActor)), "actor1");
ExpectMsg("started");
await ExpectMsgAsync("started");
}
}
}