File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ public ContextWatchWithSpec(ITestOutputHelper outputHelper)
30
30
}
31
31
32
32
[ Fact ( Skip = "This test is used with Performance Profiler to check memory leaks" ) ]
33
- public void Context_WatchWith_Should_not_have_memory_leak ( )
33
+ public async Task Context_WatchWith_Should_not_have_memory_leak ( )
34
34
{
35
35
using ( var actorSystem = ActorSystem . Create ( "repro" ) )
36
36
{
37
37
actorSystem . ActorOf ( Props . Create < LoadHandler > ( ) ) ;
38
38
39
- Thread . Sleep ( 60 . Seconds ( ) ) ;
39
+ await Task . Delay ( 60 . Seconds ( ) ) ;
40
40
}
41
41
}
42
42
Original file line number Diff line number Diff line change 10
10
using Akka . Configuration . Hocon ;
11
11
using System . Linq ;
12
12
using System . Threading ;
13
+ using System . Threading . Tasks ;
13
14
using Akka . Actor ;
14
15
using Akka . Configuration ;
15
16
using Akka . Dispatch ;
@@ -86,12 +87,12 @@ public void Deserializes_hocon_configuration_from_net_config_file()
86
87
87
88
// unit test for bug #4330
88
89
[ Fact ]
89
- public void Should_load_config_from_app_config_file ( )
90
+ public async Task Should_load_config_from_app_config_file ( )
90
91
{
91
92
#if ! CORECLR
92
93
var system = ActorSystem . Create ( Guid . NewGuid ( ) . ToString ( ) ) ;
93
94
system . Settings . Config . GetBoolean ( "nonsense.entry" ) . ShouldBeTrue ( ) ;
94
- system . Terminate ( ) ;
95
+ await system . Terminate ( ) ;
95
96
#else
96
97
// Skip this test for Linux targets
97
98
Output . WriteLine ( "This test is skipped." ) ;
You can’t perform that action at this time.
0 commit comments