Skip to content

Commit

Permalink
FIX: Use the default timeout to wait for the windows lifecycle scale …
Browse files Browse the repository at this point in the history
…assertion

- scaling is an asynchronous operation
  • Loading branch information
davewalter committed Oct 28, 2020
1 parent a6961be commit d4d8cf6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions windows/lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ var _ = WindowsDescribe("Application Lifecycle", func() {
By("scaling it", func() {
Expect(cf.Cf("scale", appName, "-i", "2").Wait(Config.CfPushTimeoutDuration())).To(Exit(0))
time.Sleep(5 * time.Second)
Eventually(cf.Cf("apps")).Should(gbytes.Say("2/2"))
Eventually(cf.Cf("apps"), Config.DefaultTimeoutDuration()).Should(gbytes.Say("2/2"))
Expect(cf.Cf("app", appName).Wait()).ToNot(gbytes.Say("insufficient resources"))
})

Expand Down Expand Up @@ -135,4 +135,3 @@ var _ = WindowsDescribe("Application Lifecycle", func() {
})
})
})

0 comments on commit d4d8cf6

Please sign in to comment.