File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Servers/Kestrel/test/Interop.FunctionalTests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -739,7 +739,7 @@ public async Task ServerReset_BeforeRequestBody_ClientBodyThrows(string scheme)
739739 await serverReset . Task . DefaultTimeout ( ) ;
740740 var responseEx = await Assert . ThrowsAsync < HttpRequestException > ( ( ) => response . Content . ReadAsStringAsync ( ) . DefaultTimeout ( ) ) ;
741741 Assert . Contains ( "The HTTP/2 server reset the stream. HTTP/2 error code 'CANCEL' (0x8)" , responseEx . ToString ( ) ) ;
742- await Assert . ThrowsAsync < TaskCanceledException > ( ( ) => streamingContent . SendAsync ( "Hello World" ) . DefaultTimeout ( ) ) ;
742+ await Assert . ThrowsAsync < IOException > ( ( ) => streamingContent . SendAsync ( "Hello World" ) . DefaultTimeout ( ) ) ;
743743 await Assert . ThrowsAnyAsync < OperationCanceledException > ( ( ) => clientEcho . Task . DefaultTimeout ( ) ) ;
744744
745745 await host . StopAsync ( ) . DefaultTimeout ( ) ;
@@ -932,7 +932,7 @@ public async Task ClientReset_BeforeResponse_ResponseSuppressed(string scheme)
932932 await requestReceived . Task . DefaultTimeout ( ) ;
933933 requestCancellation . Cancel ( ) ;
934934 await serverResult . Task . DefaultTimeout ( ) ;
935- await Assert . ThrowsAsync < IOException > ( ( ) => requestTask ) . DefaultTimeout ( ) ;
935+ await Assert . ThrowsAsync < TaskCanceledException > ( ( ) => requestTask ) . DefaultTimeout ( ) ;
936936
937937 await host . StopAsync ( ) . DefaultTimeout ( ) ;
938938 }
You can’t perform that action at this time.
0 commit comments