@@ -29,12 +29,12 @@ public LoggerSpec(ITestOutputHelper output) : base(Config, output)
29
29
{ }
30
30
31
31
[ Fact ]
32
- public void TestOutputLogger_WithBadFormattingMustNotThrow ( )
32
+ public async Task TestOutputLogger_WithBadFormattingMustNotThrow ( )
33
33
{
34
34
var events = new List < LogEvent > ( ) ;
35
35
36
36
// Need to wait until TestOutputLogger initializes
37
- Thread . Sleep ( 200 ) ;
37
+ await Task . Delay ( 500 ) ;
38
38
Sys . EventStream . Subscribe ( TestActor , typeof ( LogEvent ) ) ;
39
39
40
40
Sys . Log . Error ( new FakeException ( "BOOM" ) , Case . t , Case . p ) ;
@@ -68,7 +68,7 @@ public void TestOutputLogger_WithBadFormattingMustNotThrow()
68
68
}
69
69
70
70
[ Fact ]
71
- public void DefaultLogger_WithBadFormattingMustNotThrow ( )
71
+ public async Task DefaultLogger_WithBadFormattingMustNotThrow ( )
72
72
{
73
73
var config = ConfigurationFactory . ParseString ( "akka.loggers = [\" Akka.Event.DefaultLogger\" ]" ) ;
74
74
var sys2 = ActorSystem . Create ( "DefaultLoggerTest" , config . WithFallback ( Sys . Settings . Config ) ) ;
@@ -88,11 +88,11 @@ public void DefaultLogger_WithBadFormattingMustNotThrow()
88
88
sys2 . Log . Debug ( Case . t , Case . p ) ;
89
89
probe . ExpectMsg < Debug > ( ) ;
90
90
91
- sys2 . Terminate ( ) . Wait ( ) ;
91
+ await sys2 . Terminate ( ) ;
92
92
}
93
93
94
94
[ Fact ]
95
- public void StandardOutLogger_WithBadFormattingMustNotThrow ( )
95
+ public async Task StandardOutLogger_WithBadFormattingMustNotThrow ( )
96
96
{
97
97
var config = ConfigurationFactory . ParseString ( "akka.loggers = [\" Akka.Event.StandardOutLogger\" ]" ) ;
98
98
var sys2 = ActorSystem . Create ( "StandardOutLoggerTest" , config . WithFallback ( Sys . Settings . Config ) ) ;
@@ -112,7 +112,7 @@ public void StandardOutLogger_WithBadFormattingMustNotThrow()
112
112
sys2 . Log . Debug ( Case . t , Case . p ) ;
113
113
probe . ExpectMsg < Debug > ( ) ;
114
114
115
- sys2 . Terminate ( ) . Wait ( ) ;
115
+ await sys2 . Terminate ( ) ;
116
116
}
117
117
118
118
[ Theory ]
0 commit comments