Skip to content

Commit

Permalink
Limit the test case count
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpar committed Dec 30, 2023
1 parent ba505f6 commit 393968f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions DevOps.Util.DotNet/Triage/TriageContextUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,16 @@ public async Task<ModelTestRun> EnsureTestRunAsync(ModelBuildAttempt modelBuildA
};
Context.ModelTestRuns.Add(modelTestRun);

const int maxTestCaseCount = 200;
int count = 0;
foreach (var dotnetTestCaseResult in testRun.TestCaseResults)
{
count++;
if (count >= maxTestCaseCount)
{
break;
}

var testCaseResult = dotnetTestCaseResult.TestCaseResult;
var testResult = new ModelTestResult()
{
Expand Down

0 comments on commit 393968f

Please sign in to comment.