Skip to content

Commit

Permalink
fixes #2495. Work around for #2496
Browse files Browse the repository at this point in the history
  • Loading branch information
tejal29 committed Jul 18, 2019
1 parent f988df5 commit b44b88f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/skaffold/app/cmd/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ var FlagRegistry = []Flag{
Shorthand: "n",
Usage: "Run deployments in the specified namespace",
Value: &opts.Namespace,
DefValue: "",
DefValue: "default",
FlagAddMethod: "StringVar",
DefinedOn: []string{"all"},
},
Expand Down Expand Up @@ -224,7 +224,7 @@ var FlagRegistry = []Flag{
Name: "status-check",
Usage: "Wait for deployed resources to stabilize",
Value: &opts.StatusCheck,
DefValue: true,
DefValue: false,
FlagAddMethod: "BoolVar",
DefinedOn: []string{"dev", "debug", "deploy", "run"},
},
Expand Down
4 changes: 2 additions & 2 deletions integration/deploy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func TestDeployWithInCorrectConfig(t *testing.T) {
ns, _, deleteNs := SetupNamespace(t)
defer deleteNs()

err := skaffold.Deploy().InDir("testdata/unstable-deployment").InNs(ns.Name).Run(t)
err := skaffold.Deploy("--status-check=true").InDir("testdata/unstable-deployment").InNs(ns.Name).Run(t)
if err == nil {
t.Error("expected an error to see since the deployment is not stable. However deploy returned success")
}
Expand All @@ -128,7 +128,7 @@ func TestDeployWithInCorrectConfigWithNoStatusCheck(t *testing.T) {
ns, _, deleteNs := SetupNamespace(t)
defer deleteNs()

skaffold.Deploy("--status-check=false").InDir("testdata/unstable-deployment").InNs(ns.Name).RunOrFailOutput(t)
skaffold.Deploy().InDir("testdata/unstable-deployment").InNs(ns.Name).RunOrFailOutput(t)

skaffold.Delete().InDir("testdata/unstable-deployment").InNs(ns.Name).RunOrFail(t)
}

0 comments on commit b44b88f

Please sign in to comment.