Skip to content

Commit

Permalink
Fixing multi test finalization manager tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubch1 committed Jun 19, 2020
1 parent fc7a1c0 commit bcd0673
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 102 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private async Task<Collection<AttachmentSet>> InternalFinalizeMultiTestRunAsync(
finally
{
stopwatch.Stop();
requestData.MetricsCollection.Metrics.Add(TelemetryDataConstants.TimeTakenInSecForFinalization, stopwatch.Elapsed.TotalSeconds);
requestData.MetricsCollection.Add(TelemetryDataConstants.TimeTakenInSecForFinalization, stopwatch.Elapsed.TotalSeconds);
}
}

Expand Down Expand Up @@ -137,7 +137,7 @@ private Collection<AttachmentSet> FinalizeOperation(IRequestData requestData, Co
eventHandler?.HandleMultiTestRunFinalizationComplete(attachments);
testPlatformEventSource.MultiTestRunFinalizationStop(attachments.Count);
requestData.MetricsCollection.Add(TelemetryDataConstants.NumberOfAttachmentsAfterFinalization, attachments.Count);
requestData.MetricsCollection.Add(TelemetryDataConstants.FinalizationState, attachments.Count);
requestData.MetricsCollection.Add(TelemetryDataConstants.FinalizationState, finalizationState);

return attachments;
}
Expand Down
Loading

0 comments on commit bcd0673

Please sign in to comment.