Skip to content

Commit 980fb71

Browse files
🌱 e2e - ensure that error from command is checked (#4452)
e2e - ensure that error from command is checked
1 parent a8e72c3 commit 980fb71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/deployimage/plugin_cluster_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ func Run(kbc *utils.TestContext) {
9393

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

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

0 commit comments

Comments
 (0)