Skip to content

Commit

Permalink
🌱 e2e - ensure that error from command is checked (#4452)
Browse files Browse the repository at this point in the history
e2e - ensure that error from command is checked
  • Loading branch information
camilamacedo86 authored Dec 30, 2024
1 parent a8e72c3 commit 980fb71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/deployimage/plugin_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ func Run(kbc *utils.TestContext) {

By("deploying the controller-manager")
cmd := exec.Command("make", "deploy", "IMG="+kbc.ImageName)
out, _ := kbc.Run(cmd)
out, err := kbc.Run(cmd)
Expect(err).NotTo(HaveOccurred())
Expect(string(out)).NotTo(ContainSubstring("Warning: would violate PodSecurity"))

By("validating that the controller-manager pod is running as expected")
Expand Down

0 comments on commit 980fb71

Please sign in to comment.