File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
test/WebJobs.Script.Tests.Integration Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1018,9 +1018,13 @@ public async Task TimerTrigger()
10181018 var logs = await TestHelpers . GetFunctionLogsAsync ( "TimerTrigger" , throwOnNoLogs : false ) ;
10191019
10201020 // There is likely still a timing issue here; capture traces to help pinpoint it.
1021- var traces = string . Join ( Environment . NewLine , Fixture . TraceWriter . GetTraces ( ) . Select ( t => t . Message ) ) ;
1022- Assert . True ( logs . Count ( ) >= 2 , traces ) ;
1023- Assert . True ( logs [ 1 ] . Contains ( "Timer function ran!" ) , traces ) ;
1021+ var timerTraces = Fixture . TraceWriter . GetTraces ( )
1022+ . Select ( t => $ "{ t . Message } [{ t . Timestamp . ToString ( "HH:mm:ss.fff" ) } ]")
1023+ . Where ( t => t . Contains ( "Timer" ) && ! t . StartsWith ( "Found the following" ) ) ;
1024+ string traceString = string . Join ( Environment . NewLine , timerTraces ) ;
1025+
1026+ Assert . True ( logs . Count ( ) >= 2 , traceString ) ;
1027+ Assert . True ( logs [ 1 ] . Contains ( "Timer function ran!" ) , traceString ) ;
10241028 }
10251029
10261030 [ Fact ]
You can’t perform that action at this time.
0 commit comments