File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/Servers/HttpSys/test/FunctionalTests Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public async Task DelegateAfterWriteToResponseBodyShouldThrowTest()
8080
8181 [ ConditionalFact ]
8282 [ DelegateSupportedCondition ( true ) ]
83- public async Task WriteToBodyAfterDelegateShouldThrowTest ( )
83+ public async Task WriteToBodyAfterDelegateShouldNoOp ( )
8484 {
8585 var queueName = Guid . NewGuid ( ) . ToString ( ) ;
8686 using var receiver = Utilities . CreateHttpServer ( out var receiverAddress , async httpContext =>
@@ -94,15 +94,12 @@ public async Task WriteToBodyAfterDelegateShouldThrowTest()
9494
9595 DelegationRule wrapper = default ;
9696
97- using var delegator = Utilities . CreateHttpServer ( out var delegatorAddress , async httpContext =>
97+ using var delegator = Utilities . CreateHttpServer ( out var delegatorAddress , httpContext =>
9898 {
9999 var transferFeature = httpContext . Features . Get < IHttpSysRequestTransferFeature > ( ) ;
100100 transferFeature . TransferRequest ( wrapper ) ;
101101 Assert . False ( transferFeature . IsTransferable ) ;
102- await Assert . ThrowsAsync < InvalidOperationException > ( async ( ) =>
103- {
104- await httpContext . Response . WriteAsync ( _expectedResponseString ) ;
105- } ) ;
102+ return Task . CompletedTask ;
106103 } ) ;
107104
108105 var delegationProperty = delegator . Features . Get < IServerDelegationFeature > ( ) ;
You can’t perform that action at this time.
0 commit comments