File tree 1 file changed +2
-3
lines changed
src/Servers/Kestrel/Transport.Quic/test 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -266,11 +266,10 @@ public async Task ServerToClientUnidirectionalStream_ServerAborts_ClientGetsAbor
266
266
( ( IProtocolErrorCodeFeature ) serverStream ) . Error = ( long ) Http3ErrorCode . InternalError ;
267
267
serverStream . Abort ( new ConnectionAbortedException ( "Test message" ) ) ;
268
268
269
- // TODO - client isn't getting abort?
270
- readCount = await clientStream . ReadAsync ( buffer ) . DefaultTimeout ( ) ;
269
+ var ex = await Assert . ThrowsAsync < QuicStreamAbortedException > ( ( ) => clientStream . ReadAsync ( buffer ) . AsTask ( ) ) . DefaultTimeout ( ) ;
271
270
272
271
// Assert
273
- Assert . Equal ( 0 , readCount ) ;
272
+ Assert . Equal ( ( long ) Http3ErrorCode . InternalError , ex . ErrorCode ) ;
274
273
275
274
var quicStreamContext = Assert . IsType < QuicStreamContext > ( serverStream ) ;
276
275
Assert . True ( quicStreamContext . CanWrite ) ;
You can’t perform that action at this time.
0 commit comments