Skip to content

Commit

Permalink
[JENKINS-17960] Simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed Mar 12, 2014
1 parent f6bd689 commit 275c599
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main/java/org/tap4j/plugin/TapPublisher.java
Expand Up @@ -299,12 +299,8 @@ private boolean validateNumberOfTests(List<TestSetMap> testSets) {
Plan plan = testSet.getPlan();
if (plan != null) {
int planned = plan.getLastTestNumber();
int totalWithSuccess = 0;
for (TestResult tr : testSet.getTestResults()) {
if (tr.getStatus() == StatusValues.OK)
totalWithSuccess++;
}
if (planned != totalWithSuccess)
int numberOfTests = testSet.getTestResults().size();
if (planned != numberOfTests)
return false;
}
}
Expand Down

0 comments on commit 275c599

Please sign in to comment.