Skip to content

Commit

Permalink
Change continue-deployment unit test to match style of similar tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chinigo committed Aug 20, 2024
1 parent 8c8b426 commit 2f74021
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions command/v7/continue_deployment_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -68,7 +69,6 @@ var _ = Describe("Continue deployment command", func() {
})

JustBeforeEach(func() {
cmd.NoWait = noWait
executeErr = cmd.Execute(nil)
})

Expand Down Expand Up @@ -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))

Expand All @@ -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() {
Expand Down

0 comments on commit 2f74021

Please sign in to comment.