From f0a5a01f6d9c0e90c43f485e7337d5c2bd818f21 Mon Sep 17 00:00:00 2001 From: Doug Bunting Date: Fri, 25 Mar 2016 10:04:17 -0700 Subject: [PATCH] React to `HttpContextFactory` constructor change - remove unused field - see pull aspnet/HttpAbstractions#594 and issue aspnet/HttpAbstractions#561 --- .../Utilities.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/Microsoft.AspNetCore.Server.WebListener.FunctionalTests/Utilities.cs b/test/Microsoft.AspNetCore.Server.WebListener.FunctionalTests/Utilities.cs index 97521f74bd..689a0ed98e 100644 --- a/test/Microsoft.AspNetCore.Server.WebListener.FunctionalTests/Utilities.cs +++ b/test/Microsoft.AspNetCore.Server.WebListener.FunctionalTests/Utilities.cs @@ -18,8 +18,6 @@ using System; using Microsoft.AspNetCore.Hosting.Server; using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Http.Features; -using Microsoft.AspNetCore.Http.Internal; using Microsoft.AspNetCore.Server.Features; using Microsoft.Net.Http.Server; @@ -27,14 +25,13 @@ namespace Microsoft.AspNetCore.Server.WebListener { internal static class Utilities { - // When tests projects are run in parallel, overlapping port ranges can cause a race condition when looking for free - // ports during dynamic port allocation. To avoid this, make sure the port range here is different from the range in + // When tests projects are run in parallel, overlapping port ranges can cause a race condition when looking for free + // ports during dynamic port allocation. To avoid this, make sure the port range here is different from the range in // Microsoft.Net.Http.Server. private const int BasePort = 5001; private const int MaxPort = 8000; private static int NextPort = BasePort; private static object PortLock = new object(); - private static IHttpContextFactory Factory = new HttpContextFactory(new HttpContextAccessor()); internal static IServer CreateHttpServer(out string baseAddress, RequestDelegate app) {