From 7eabf5cf3a899c6394028d7fcb9c2bdfca9cfe60 Mon Sep 17 00:00:00 2001 From: Chris R Date: Thu, 5 Jan 2017 12:34:35 -0800 Subject: [PATCH] Remove obsolete WebListener test scenario --- test/AutobahnTestApp/Startup.cs | 9 --------- .../AutobahnTests.cs | 3 --- 2 files changed, 12 deletions(-) diff --git a/test/AutobahnTestApp/Startup.cs b/test/AutobahnTestApp/Startup.cs index 97ac3d09..a7005b22 100644 --- a/test/AutobahnTestApp/Startup.cs +++ b/test/AutobahnTestApp/Startup.cs @@ -15,15 +15,6 @@ public class Startup // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { - if (!env.IsEnvironment("NativeSockets")) - { - // Register a middleware that disables the server-provided WebSockets feature - app.Use((context, next) => - { - context.Features.Set(null); - return next(); - }); - } app.UseWebSockets(); app.Use(async (context, next) => diff --git a/test/Microsoft.AspNetCore.WebSockets.ConformanceTest/AutobahnTests.cs b/test/Microsoft.AspNetCore.WebSockets.ConformanceTest/AutobahnTests.cs index 6f33cf5e..28a111d5 100644 --- a/test/Microsoft.AspNetCore.WebSockets.ConformanceTest/AutobahnTests.cs +++ b/test/Microsoft.AspNetCore.WebSockets.ConformanceTest/AutobahnTests.cs @@ -75,9 +75,6 @@ await tester.DeployTestAndAddToSpec(ServerType.WebListener, ssl: false, environm } } - // REQUIRES a build of WebListener that supports native WebSockets, which we don't have right now - //await tester.DeployTestAndAddToSpec(ServerType.WebListener, ssl: false, environment: "NativeSockets"); - result = await tester.Run(cts.Token); tester.Verify(result); }