Skip to content

Commit

Permalink
fix(tests): destroy without --app flag to remove git remote
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Dec 14, 2014
1 parent 9e41d71 commit 695e53e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/apps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var (
appsLogsCmd = "apps:logs --app={{.AppName}}"
appsInfoCmd = "apps:info --app={{.AppName}}"
appsDestroyCmd = "apps:destroy --app={{.AppName}} --confirm={{.AppName}}"
appsDestroyCmdNoApp = "apps:destroy --confirm={{.AppName}}"
)

func randomString(n int) string {
Expand Down Expand Up @@ -59,7 +60,7 @@ func appsCreateTest(t *testing.T, params *utils.DeisTestConfig) {
}
// TODO: move --buildpack to client unit tests
utils.Execute(t, appsCreateCmdBuildpack, params, false, "BUILDPACK_URL")
utils.Execute(t, appsDestroyCmd, params, false, "")
utils.Execute(t, appsDestroyCmdNoApp, params, false, "")
utils.Execute(t, appsCreateCmd, params, false, "")
utils.Execute(t, appsCreateCmd, params, true, "App with this Id already exists")
}
Expand Down

0 comments on commit 695e53e

Please sign in to comment.