Skip to content

Commit

Permalink
debug failing integration test
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Korczynski <[email protected]>
  • Loading branch information
AdamKorcz committed Dec 5, 2023
1 parent f50e991 commit bf17c3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checks/evaluation/ci_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func CITests(name string,
return checker.CreateRuntimeErrorResult(name, e)
}

Check warning on line 39 in checks/evaluation/ci_tests.go

View check run for this annotation

Codecov / codecov/patch

checks/evaluation/ci_tests.go#L36-L39

Added lines #L36 - L39 were not covered by tests
// check whether there are any negative findings
// check that the project has pull requests
if noPullRequestsFound(findings) {
return checker.CreateInconclusiveResult(CheckCITests, "no pull request found")
}
Expand All @@ -46,7 +46,7 @@ func CITests(name string,
totalTested := findings[0].Values["totalTested"]

if totalMerged < totalTested || len(findings) != totalTested {
e := sce.WithMessage(sce.ErrScorecardInternal, "invalid probe results")
e := sce.WithMessage(sce.ErrScorecardInternal, "invalid finding values")
return checker.CreateRuntimeErrorResult(name, e)
}

Expand Down

0 comments on commit bf17c3c

Please sign in to comment.