Skip to content

Commit

Permalink
update assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
simar7 committed Nov 2, 2024
1 parent 3725437 commit e8f03ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/verify-bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func LoadAndVerifyBundle() {
trivyC := createTrivyContainer(ctx, trivyVersion, regIP)
fmt.Println(debugLogsForContainer(ctx, trivyC))

if !assertInLogs(debugLogsForContainer(ctx, trivyC), `Tests: 1 (SUCCESSES: 0, FAILURES: 1, EXCEPTIONS: 0)`) {
if !assertInLogs(debugLogsForContainer(ctx, trivyC), `Tests: 1 (SUCCESSES: 0, FAILURES: 1)`) {
panic("asserting Trivy logs for misconfigurations failed, check Trivy log output")
}

Expand Down

0 comments on commit e8f03ba

Please sign in to comment.