Skip to content

Commit

Permalink
Merge pull request #2499 from tejal29/fix_2495
Browse files Browse the repository at this point in the history
Set statuscheck to false.
  • Loading branch information
balopat authored Jul 18, 2019
2 parents c3f9521 + fd9adfb commit cc673b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/skaffold/app/cmd/flags.go
Original file line number Diff line number Diff line change
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 cc673b5

Please sign in to comment.