fix disposal of Deployers during autobahn suites

This commit is contained in:
Andrew Stanton-Nurse 2016-10-27 15:49:58 -07:00
parent 55b2b09416
commit 18de340981
2 changed files with 3 additions and 2 deletions

2
.gitignore vendored
View File

@ -28,3 +28,5 @@ project.lock.json
.testPublish/
.build/
autobahnreports/
*.nuget.props
*.nuget.targets

View File

@ -103,6 +103,7 @@ namespace Microsoft.AspNetCore.WebSockets.ConformanceTest.Autobahn
var deployer = ApplicationDeployerFactory.Create(parameters, logger);
var result = deployer.Deploy();
_deployers.Add(deployer);
#if NET451
System.Net.ServicePointManager.ServerCertificateValidationCallback = (_, __, ___, ____) => true;
@ -130,8 +131,6 @@ namespace Microsoft.AspNetCore.WebSockets.ConformanceTest.Autobahn
var wsUrl = result.ApplicationBaseUri.Replace("https://", "wss://").Replace("http://", "ws://");
Spec.WithServer(name, wsUrl);
_deployers.Add(deployer);
var expectations = new AutobahnExpectations(server, ssl, environment);
expectationConfig?.Invoke(expectations);
_expectations.Add(expectations);