Skip to content

Commit

Permalink
gomega success
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvz committed Mar 31, 2023
1 parent f9638e2 commit a94726a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ var _ = ginkgo.SynchronizedAfterSuite(func(ctx ginkgo.SpecContext) {},
}, ginkgo.NodeTimeout(10*time.Minute))

func execTestCmd(cmds []testCmd) {
// Any function in which GinkgoHelper() is called is tracked by Ginkgo and ignored when a failure location is being computed.
// This allows you to build reusable test helpers and trust that the location presented to the user will always be in the spec that called the helper, and not the helper itself.
ginkgo.GinkgoHelper()

for _, cmd := range cmds {
Expand All @@ -204,8 +202,7 @@ func execTestCmd(cmds []testCmd) {
cmdSh.Dir = projectRoot
cmdSh.Stdout = os.Stdout
cmdSh.Stderr = os.Stderr
err := cmdSh.Run()
gomega.Expect(err).NotTo(gomega.HaveOccurred())
gomega.Expect(cmdSh.Run()).To(gomega.Succeed())
log.Println(cmd.endLog)
}
}
Expand Down

0 comments on commit a94726a

Please sign in to comment.