Skip to content

Commit

Permalink
Fix broken e2e tests (#1291)
Browse files Browse the repository at this point in the history
Co-authored-by: Azeem Shaikh <[email protected]>
  • Loading branch information
azeemshaikh38 and azeemsgoogle authored Nov 17, 2021
1 parent 0bd5756 commit 0b32cc3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions checks/fuzzing.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ func checkCFLite(c *checker.CheckRequest) (bool, error) {
result = fileparser.CheckFileContainsCommands(content, "#")
return false, nil
}, nil)

return result, fmt.Errorf("%w", e)
if e != nil {
return result, fmt.Errorf("%w", e)
}
return result, nil
}

func checkOSSFuzz(c *checker.CheckRequest) (bool, error) {
Expand Down
2 changes: 1 addition & 1 deletion e2e/binary_artifacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var _ = Describe("E2E TEST:"+checks.CheckBinaryArtifacts, func() {
expected := scut.TestReturn{
Error: nil,
Score: checker.MinResultScore,
NumberOfWarn: 35,
NumberOfWarn: 34,
NumberOfInfo: 0,
NumberOfDebug: 0,
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/branch_protection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var _ = Describe("E2E TEST:"+checks.CheckBranchProtection, func() {
Error: nil,
Score: 8,
NumberOfWarn: 1,
NumberOfInfo: 8,
NumberOfInfo: 9,
NumberOfDebug: 0,
}
result := checks.BranchProtection(&req)
Expand Down

0 comments on commit 0b32cc3

Please sign in to comment.