Skip to content

Commit

Permalink
🐛 Fix broken e2e tests for Binary Artifacts
Browse files Browse the repository at this point in the history
Fixed the broken e2e tests for Binary artifacts.
  • Loading branch information
naveensrinivasan committed Oct 29, 2021
1 parent 83649a7 commit a53245a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions e2e/binary_artifacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,13 @@ var _ = Describe("E2E TEST:"+checks.CheckBinaryArtifacts, func() {
}
expected := scut.TestReturn{
Error: nil,
Score: checker.MaxResultScore,
NumberOfWarn: 0,
Score: checker.MinResultScore,
NumberOfWarn: 1,
NumberOfInfo: 0,
NumberOfDebug: 0,
}

result := checks.BinaryArtifacts(&req)
// UPGRADEv2: to remove.
// Old version.
Expect(result.Error).Should(BeNil())
Expect(result.Pass).Should(BeTrue())
// New version.
Expect(scut.ValidateTestReturn(nil, "no binary artifacts", &expected, &result, &dl)).Should(BeTrue())
})
It("Should return binary artifacts present in source code", func() {
Expand Down

0 comments on commit a53245a

Please sign in to comment.