From f968a400d91618058dba04ccabd41f9a46fc8591 Mon Sep 17 00:00:00 2001 From: Pavel Busko Date: Mon, 23 Sep 2024 15:49:08 +0200 Subject: [PATCH] fix help usage test Co-authored-by: Ralf Pannemans --- integration/v7/push/help_test.go | 1 + integration/v7/push/tasks_test.go | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integration/v7/push/help_test.go b/integration/v7/push/help_test.go index 32845920753..7503e313a38 100644 --- a/integration/v7/push/help_test.go +++ b/integration/v7/push/help_test.go @@ -26,6 +26,7 @@ var _ = Describe("help", func() { "[-b BUILDPACK_NAME]", "[-c COMMAND]", "[-f MANIFEST_PATH | --no-manifest]", + "[--lifecycle (buildpack | docker | cnb)]", "[--no-start]", "[--no-wait]", "[-i NUM_INSTANCES]", diff --git a/integration/v7/push/tasks_test.go b/integration/v7/push/tasks_test.go index 4b85976ea2a..319c936eeab 100644 --- a/integration/v7/push/tasks_test.go +++ b/integration/v7/push/tasks_test.go @@ -7,7 +7,6 @@ import ( . "github.com/onsi/gomega" . "github.com/onsi/gomega/gbytes" "github.com/onsi/gomega/gexec" - . "github.com/onsi/gomega/gexec" ) var _ = Describe("push with --task", func() { @@ -19,7 +18,7 @@ var _ = Describe("push with --task", func() { appName = helpers.NewAppName() helpers.WithHelloWorldApp(func(dir string) { session := helpers.CF("push", appName, "-p", dir, "--task") - Eventually(session).Should(Exit(0)) + Eventually(session).Should(gexec.Exit(0)) }) }) @@ -28,7 +27,7 @@ var _ = Describe("push with --task", func() { BeforeEach(func() { session = helpers.CF("app", appName) - Eventually(session).Should(Exit(0)) + Eventually(session).Should(gexec.Exit(0)) }) It("pushes the app without starting it", func() {