Skip to content

Commit

Permalink
Handling disposed connection (#4779)
Browse files Browse the repository at this point in the history
  • Loading branch information
adityashahms authored Apr 30, 2024
1 parent 642c783 commit 7e7d2ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public void InitializePublisher(IExecutionContext context, string projectName, V
_resultReader = GetTestResultReader(_testRunner, publishRunLevelAttachments);
_testRunPublisher = HostContext.GetService<ITestRunPublisher>();
_featureFlagService = HostContext.GetService<IFeatureFlagService>();
_featureFlagService.InitializeFeatureService(_executionContext, connection);
_testRunPublisher.InitializePublisher(_executionContext, connection, projectName, _resultReader);
_testResultsServer = HostContext.GetService<ITestResultsServer>();
_testResultsServer.InitializeServer(connection, _executionContext);
Expand Down
1 change: 1 addition & 0 deletions src/Agent.Worker/TestResults/TestDataPublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public void InitializePublisher(IExecutionContext context, string projectName, V
_testResultsServer.InitializeServer(connection, _executionContext);
var extensionManager = HostContext.GetService<IExtensionManager>();
_featureFlagService = HostContext.GetService<IFeatureFlagService>();
_featureFlagService.InitializeFeatureService(_executionContext, connection);
_parser = (extensionManager.GetExtensions<IParser>()).FirstOrDefault(x => _testRunner.Equals(x.Name, StringComparison.OrdinalIgnoreCase));
_testRunPublisherHelper = new TestRunDataPublisherHelper(_executionContext, _testRunPublisher, null, _testResultsServer);
Trace.Leaving();
Expand Down

0 comments on commit 7e7d2ec

Please sign in to comment.