Skip to content

Commit

Permalink
Calculating the right test outcome to set the context result. (#2749)
Browse files Browse the repository at this point in the history
  • Loading branch information
navin22 authored and Tommy Petty committed Jan 28, 2020
1 parent b4134c0 commit dd5296b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ private bool GetTestRunOutcome(TestRunData testRunData, TestRunSummary testRunSu
default: break;
}

if(!_calculateTestRunSummary)
if(!_calculateTestRunSummary && anyFailedTests)
{
return anyFailedTests;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Agent.Worker/TestResults/TestDataPublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private bool GetTestRunOutcome(IExecutionContext executionContext, IList<TestRun
default: break;
}

if(!_calculateTestRunSummary)
if(!_calculateTestRunSummary && anyFailedTests)
{
return anyFailedTests;
}
Expand Down

0 comments on commit dd5296b

Please sign in to comment.