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 @@ -798,7 +798,7 @@ public async Task ServerReset_BeforeRequestBodyEnd_ClientBodyThrows(string schem
798
798
await serverReset . Task . DefaultTimeout ( ) ;
799
799
var responseEx = await Assert . ThrowsAsync < HttpRequestException > ( ( ) => response . Content . ReadAsStringAsync ( ) . DefaultTimeout ( ) ) ;
800
800
Assert . Contains ( "The HTTP/2 server reset the stream. HTTP/2 error code 'CANCEL' (0x8)" , responseEx . ToString ( ) ) ;
801
- await Assert . ThrowsAsync < TaskCanceledException > ( ( ) => streamingContent . SendAsync ( "Hello World" ) . DefaultTimeout ( ) ) ;
801
+ await Assert . ThrowsAsync < IOException > ( ( ) => streamingContent . SendAsync ( "Hello World" ) . DefaultTimeout ( ) ) ;
802
802
await Assert . ThrowsAnyAsync < OperationCanceledException > ( ( ) => clientEcho . Task . DefaultTimeout ( ) ) ;
803
803
804
804
await host . StopAsync ( ) . DefaultTimeout ( ) ;
@@ -932,7 +932,7 @@ public async Task ClientReset_BeforeResponse_ResponseSuppressed(string scheme)
932
932
await requestReceived . Task . DefaultTimeout ( ) ;
933
933
requestCancellation . Cancel ( ) ;
934
934
await serverResult . Task . DefaultTimeout ( ) ;
935
- await Assert . ThrowsAsync < TaskCanceledException > ( ( ) => requestTask ) . DefaultTimeout ( ) ;
935
+ await Assert . ThrowsAsync < IOException > ( ( ) => requestTask ) . DefaultTimeout ( ) ;
936
936
937
937
await host . StopAsync ( ) . DefaultTimeout ( ) ;
938
938
}
You can’t perform that action at this time.
0 commit comments