Skip to content

Commit

Permalink
acceptance tests green
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubch1 committed Jun 10, 2020
1 parent 29d618d commit 44c5fdc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void HandleMultiTestRunsFinalizationComplete(ICollection<AttachmentSet> a

var payload = new MultiTestRunsFinalizationCompletePayload()
{
Attachments = null
Attachments = attachments
};

// Send run complete to translation layer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ public async Task FinalizeMultiTestRunsAsync(ICollection<AttachmentSet> attachme

var completedTask = await Task.WhenAny(task, taskCompletionSource.Task);

if (completedTask == task)
{
eventHandler.HandleMultiTestRunsFinalizationComplete(attachments);
}
else
if (completedTask != task)
{
eventHandler.HandleMultiTestRunsFinalizationComplete(null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,18 @@ private string MergeCodeCoverageFiles(IList<string> files, CancellationToken can
}
catch (OperationCanceledException)
{
if (EqtTrace.IsInfoEnabled)
if (EqtTrace.IsWarningEnabled)
{
EqtTrace.Info("CodeCoverageDataCollectorAttachmentsHandler: operation was cancelled.");
EqtTrace.Warning("CodeCoverageDataCollectorAttachmentsHandler: operation was cancelled.");
}
throw;
}
catch (ObjectDisposedException)
{
if (EqtTrace.IsWarningEnabled)
{
EqtTrace.Warning("CodeCoverageDataCollectorAttachmentsHandler: object disposed.");
}
throw;
}
catch (Exception ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public void FinalizeMultiTestRuns(RunnerInfo runnerInfo)
this.vstestConsoleWrapper.FinalizeMultiTestRuns(runEventHandler.Attachments, multiTestRunsFinalizationEventHandler);

// Assert
multiTestRunsFinalizationEventHandler.EnsureSuccess();
Assert.AreEqual(testEnvironment.RunnerFramework.Equals(IntegrationTestBase.DesktopRunnerFramework) ? 1 : 2, this.multiTestRunsFinalizationEventHandler.Attachments.Count);
}

Expand Down

0 comments on commit 44c5fdc

Please sign in to comment.