@@ -345,10 +345,6 @@ public async Task Server_SetHttp503VebosityHittingThrottle_Success()
345345 Assert . Equal ( HttpStatusCode . ServiceUnavailable , response . StatusCode ) ;
346346 }
347347 }
348-
349- // A connection has been closed, try again.
350- string responseText = await SendRequestAsync ( address ) ;
351- Assert . Equal ( string . Empty , responseText ) ;
352348 }
353349 }
354350 }
@@ -366,31 +362,6 @@ public void Server_SetConnectionLimitArgumentValidation_Success()
366362 }
367363 }
368364
369- [ ConditionalFact ]
370- public async Task Server_SetConnectionLimit_Success ( )
371- {
372- using ( Utilities . CreateDynamicHost ( out var address , options =>
373- {
374- Assert . Null ( options . MaxConnections ) ;
375- options . MaxConnections = 3 ;
376- } , httpContext => Task . FromResult ( 0 ) ) )
377- {
378- using ( var client1 = await SendHungRequestAsync ( "GET" , address ) )
379- using ( var client2 = await SendHungRequestAsync ( "GET" , address ) )
380- {
381- using ( var client3 = await SendHungRequestAsync ( "GET" , address ) )
382- {
383- // Maxed out, refuses connection and throws
384- await Assert . ThrowsAsync < HttpRequestException > ( ( ) => SendRequestAsync ( address ) ) ;
385- }
386-
387- // A connection has been closed, try again.
388- string responseText = await SendRequestAsync ( address ) ;
389- Assert . Equal ( string . Empty , responseText ) ;
390- }
391- }
392- }
393-
394365 [ ConditionalFact ]
395366 public async Task Server_SetConnectionLimitChangeAfterStarted_Success ( )
396367 {
0 commit comments