File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
src/Servers/Kestrel/test/FunctionalTests Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -709,12 +709,7 @@ await connection.Send("POST / HTTP/1.1",
709
709
}
710
710
}
711
711
712
- var thrownEx = await Assert . ThrowsAnyAsync < Exception > ( async ( ) => await readTcs . Task ) . DefaultTimeout ( ) ;
713
-
714
- // https://github.com/aspnet/AspNetCore-Internal/issues/1521
715
- // In more recent versions of Kestrel, we expect this to always be a TaskCanceledException,
716
- // but without the changes in https://github.com/aspnet/KestrelHttpServer/pull/2844, this is flaky.
717
- Assert . True ( thrownEx is TaskCanceledException || thrownEx is IOException , $ "{ thrownEx } is neither a TaskCanceledException nor IOException.") ;
712
+ await Assert . ThrowsAsync < TaskCanceledException > ( async ( ) => await readTcs . Task ) ;
718
713
719
714
// The cancellation token for only the last request should be triggered.
720
715
var abortedRequestId = await registrationTcs . Task . DefaultTimeout ( ) ;
You can’t perform that action at this time.
0 commit comments