From 2f74021651765bf8875f1ea3083b2be08b985a34 Mon Sep 17 00:00:00 2001 From: Michael Chinigo Date: Tue, 20 Aug 2024 15:53:34 -0400 Subject: [PATCH] Change `continue-deployment` unit test to match style of similar tests --- command/v7/continue_deployment_command_test.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/command/v7/continue_deployment_command_test.go b/command/v7/continue_deployment_command_test.go index ff192056f9b..66ce4535f91 100644 --- a/command/v7/continue_deployment_command_test.go +++ b/command/v7/continue_deployment_command_test.go @@ -45,6 +45,7 @@ var _ = Describe("Continue deployment command", func() { cmd = ContinueDeploymentCommand{ RequiredArgs: flag.AppName{AppName: appName}, + NoWait: noWait, BaseCommand: BaseCommand{ UI: testUI, Config: fakeConfig, @@ -68,7 +69,6 @@ var _ = Describe("Continue deployment command", func() { }) JustBeforeEach(func() { - cmd.NoWait = noWait executeErr = cmd.Execute(nil) }) @@ -208,10 +208,6 @@ var _ = Describe("Continue deployment command", func() { }) When("the --no-wait flag is not provided", func() { - BeforeEach(func() { - noWait = false - }) - It("polls and waits", func() { Expect(fakeActor.PollStartForDeploymentCallCount()).To(Equal(1)) @@ -224,7 +220,7 @@ var _ = Describe("Continue deployment command", func() { When("the --no-wait flag is provided", func() { BeforeEach(func() { - noWait = true + cmd.NoWait = true }) It("polls without waiting", func() {