fix disposal of Deployers during autobahn suites
This commit is contained in:
parent
55b2b09416
commit
18de340981
|
|
@ -28,3 +28,5 @@ project.lock.json
|
||||||
.testPublish/
|
.testPublish/
|
||||||
.build/
|
.build/
|
||||||
autobahnreports/
|
autobahnreports/
|
||||||
|
*.nuget.props
|
||||||
|
*.nuget.targets
|
||||||
|
|
@ -103,6 +103,7 @@ namespace Microsoft.AspNetCore.WebSockets.ConformanceTest.Autobahn
|
||||||
|
|
||||||
var deployer = ApplicationDeployerFactory.Create(parameters, logger);
|
var deployer = ApplicationDeployerFactory.Create(parameters, logger);
|
||||||
var result = deployer.Deploy();
|
var result = deployer.Deploy();
|
||||||
|
_deployers.Add(deployer);
|
||||||
|
|
||||||
#if NET451
|
#if NET451
|
||||||
System.Net.ServicePointManager.ServerCertificateValidationCallback = (_, __, ___, ____) => true;
|
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://");
|
var wsUrl = result.ApplicationBaseUri.Replace("https://", "wss://").Replace("http://", "ws://");
|
||||||
Spec.WithServer(name, wsUrl);
|
Spec.WithServer(name, wsUrl);
|
||||||
|
|
||||||
_deployers.Add(deployer);
|
|
||||||
|
|
||||||
var expectations = new AutobahnExpectations(server, ssl, environment);
|
var expectations = new AutobahnExpectations(server, ssl, environment);
|
||||||
expectationConfig?.Invoke(expectations);
|
expectationConfig?.Invoke(expectations);
|
||||||
_expectations.Add(expectations);
|
_expectations.Add(expectations);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue