@@ -345,10 +345,6 @@ public async Task Server_SetHttp503VebosityHittingThrottle_Success()
345
345
Assert . Equal ( HttpStatusCode . ServiceUnavailable , response . StatusCode ) ;
346
346
}
347
347
}
348
-
349
- // A connection has been closed, try again.
350
- string responseText = await SendRequestAsync ( address ) ;
351
- Assert . Equal ( string . Empty , responseText ) ;
352
348
}
353
349
}
354
350
}
@@ -366,31 +362,6 @@ public void Server_SetConnectionLimitArgumentValidation_Success()
366
362
}
367
363
}
368
364
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
-
394
365
[ ConditionalFact ]
395
366
public async Task Server_SetConnectionLimitChangeAfterStarted_Success ( )
396
367
{
0 commit comments