Skip to content

Commit 49c87aa

Browse files
authored
Port Akka.Tests.Actor tests to async/await - BugFix2176Spec (#5826)
1 parent 52ed1dd commit 49c87aa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/core/Akka.Tests/Actor/BugFix2176Spec.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// </copyright>
66
//-----------------------------------------------------------------------
77

8+
using System.Threading.Tasks;
89
using Akka.Actor;
910
using Akka.TestKit;
1011
using Xunit;
@@ -55,17 +56,17 @@ protected override void PreStart()
5556
}
5657

5758
[Fact]
58-
public void Fix2176_Constructor_Should_create_valid_child_actor()
59+
public async Task Fix2176_Constructor_Should_create_valid_child_actor()
5960
{
6061
var actor = Sys.ActorOf(Props.Create(() => new Actor1NonAsync(TestActor)), "actor1");
61-
ExpectMsg("started");
62+
await ExpectMsgAsync("started");
6263
}
6364

6465
[Fact]
65-
public void Fix2176_RunTask_Should_create_valid_child_actor()
66+
public async Task Fix2176_RunTask_Should_create_valid_child_actor()
6667
{
6768
var actor = Sys.ActorOf(Props.Create(() => new Actor1(TestActor)), "actor1");
68-
ExpectMsg("started");
69+
await ExpectMsgAsync("started");
6970
}
7071
}
7172
}

0 commit comments

Comments
 (0)