fix disposal of Deployers during autobahn suites
This commit is contained in:
parent
55b2b09416
commit
18de340981
|
|
@ -28,3 +28,5 @@ project.lock.json
|
|||
.testPublish/
|
||||
.build/
|
||||
autobahnreports/
|
||||
*.nuget.props
|
||||
*.nuget.targets
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue