File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/Servers/Kestrel/test/FunctionalTests Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -417,19 +417,18 @@ public async Task IncompleteRequestBodyDoesNotLogAsApplicationError()
417417 && context . EventId == badRequestEventId
418418 && context . LogLevel == LogLevel . Debug )
419419 {
420- badRequestLogged . SetResult ( ) ;
420+ badRequestLogged . TrySetResult ( ) ;
421421 }
422422 else if ( context . LoggerName == "Microsoft.AspNetCore.Server.Kestrel"
423423 && context . EventId . Id == appErrorEventId
424424 && context . LogLevel > LogLevel . Debug )
425425 {
426- appErrorLogged . SetResult ( ) ;
426+ appErrorLogged . TrySetResult ( ) ;
427427 }
428428 else if ( context . LoggerName == "Microsoft.AspNetCore.Server.Kestrel.Connections"
429- && context . EventId == connectionStopEventId
430- && context . Message . Contains ( "stopped." ) )
429+ && context . EventId == connectionStopEventId )
431430 {
432- connectionStoppedLogged . SetResult ( ) ;
431+ connectionStoppedLogged . TrySetResult ( ) ;
433432 }
434433 } ;
435434
You can’t perform that action at this time.
0 commit comments