Skip to content

Commit

Permalink
fix cats - restart persistent app if it is stopped
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Liebreich <[email protected]>
  • Loading branch information
sykesm authored and dliebreich committed Jun 3, 2014
1 parent 2b517e5 commit fdedbbd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/one_push_many_restarts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ var _ = Describe("An application that's already been pushed", func() {
if appQuery.ExitCode() == 1 && strings.Contains(output, "not found") {
Expect(cf.Cf("push", appName, "-p", helpers.NewAssets().Dora).Wait(CF_PUSH_TIMEOUT)).To(Exit(0))
}

if appQuery.ExitCode() == 0 && strings.Contains(output, "stopped") {
Expect(cf.Cf("start", appName).Wait(DEFAULT_TIMEOUT)).To(Exit(0))
}
})

It("can be restarted and still come up", func() {
Expand Down

0 comments on commit fdedbbd

Please sign in to comment.