Skip to content
This repository was archived by the owner on Mar 19, 2019. It is now read-only.

Commit f0a5a01

Browse files
committed
React to HttpContextFactory constructor change
- remove unused field - see pull aspnet/HttpAbstractions#594 and issue aspnet/HttpAbstractions#561
1 parent 7c67a4a commit f0a5a01

File tree

1 file changed

+2
-5
lines changed
  • test/Microsoft.AspNetCore.Server.WebListener.FunctionalTests

1 file changed

+2
-5
lines changed

test/Microsoft.AspNetCore.Server.WebListener.FunctionalTests/Utilities.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,20 @@
1818
using System;
1919
using Microsoft.AspNetCore.Hosting.Server;
2020
using Microsoft.AspNetCore.Http;
21-
using Microsoft.AspNetCore.Http.Features;
22-
using Microsoft.AspNetCore.Http.Internal;
2321
using Microsoft.AspNetCore.Server.Features;
2422
using Microsoft.Net.Http.Server;
2523

2624
namespace Microsoft.AspNetCore.Server.WebListener
2725
{
2826
internal static class Utilities
2927
{
30-
// When tests projects are run in parallel, overlapping port ranges can cause a race condition when looking for free
31-
// ports during dynamic port allocation. To avoid this, make sure the port range here is different from the range in
28+
// When tests projects are run in parallel, overlapping port ranges can cause a race condition when looking for free
29+
// ports during dynamic port allocation. To avoid this, make sure the port range here is different from the range in
3230
// Microsoft.Net.Http.Server.
3331
private const int BasePort = 5001;
3432
private const int MaxPort = 8000;
3533
private static int NextPort = BasePort;
3634
private static object PortLock = new object();
37-
private static IHttpContextFactory Factory = new HttpContextFactory(new HttpContextAccessor());
3835

3936
internal static IServer CreateHttpServer(out string baseAddress, RequestDelegate app)
4037
{

0 commit comments

Comments
 (0)