Remove obsolete WebListener test scenario

This commit is contained in:
Chris R 2017-01-05 12:34:35 -08:00
parent 3d62de4fe6
commit 7eabf5cf3a
2 changed files with 0 additions and 12 deletions

View File

@ -15,15 +15,6 @@ namespace AutobahnTestApp
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. // 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) 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<IHttpWebSocketFeature>(null);
return next();
});
}
app.UseWebSockets(); app.UseWebSockets();
app.Use(async (context, next) => app.Use(async (context, next) =>

View File

@ -75,9 +75,6 @@ namespace Microsoft.AspNetCore.WebSockets.ConformanceTest
} }
} }
// 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); result = await tester.Run(cts.Token);
tester.Verify(result); tester.Verify(result);
} }