File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/core/Akka.Tests/Actor Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 5
5
// </copyright>
6
6
//-----------------------------------------------------------------------
7
7
8
+ using System . Threading . Tasks ;
8
9
using Akka . Actor ;
9
10
using Akka . TestKit ;
10
11
using Xunit ;
@@ -55,17 +56,17 @@ protected override void PreStart()
55
56
}
56
57
57
58
[ Fact ]
58
- public void Fix2176_Constructor_Should_create_valid_child_actor ( )
59
+ public async Task Fix2176_Constructor_Should_create_valid_child_actor ( )
59
60
{
60
61
var actor = Sys . ActorOf ( Props . Create ( ( ) => new Actor1NonAsync ( TestActor ) ) , "actor1" ) ;
61
- ExpectMsg ( "started" ) ;
62
+ await ExpectMsgAsync ( "started" ) ;
62
63
}
63
64
64
65
[ Fact ]
65
- public void Fix2176_RunTask_Should_create_valid_child_actor ( )
66
+ public async Task Fix2176_RunTask_Should_create_valid_child_actor ( )
66
67
{
67
68
var actor = Sys . ActorOf ( Props . Create ( ( ) => new Actor1 ( TestActor ) ) , "actor1" ) ;
68
- ExpectMsg ( "started" ) ;
69
+ await ExpectMsgAsync ( "started" ) ;
69
70
}
70
71
}
71
72
}
You can’t perform that action at this time.
0 commit comments