From fdedbbd98e56b32d6c272b549406be230b75e7f8 Mon Sep 17 00:00:00 2001 From: Matthew Sykes Date: Tue, 3 Jun 2014 15:24:58 -0700 Subject: [PATCH] fix cats - restart persistent app if it is stopped Signed-off-by: Dave Liebreich --- apps/one_push_many_restarts_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/one_push_many_restarts_test.go b/apps/one_push_many_restarts_test.go index 2b7c14896..ed4d74c3b 100644 --- a/apps/one_push_many_restarts_test.go +++ b/apps/one_push_many_restarts_test.go @@ -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() {