Skip to content

Commit

Permalink
re-enable deployment test
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Dec 14, 2017
1 parent 0ac4108 commit 56ac0bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 8 additions & 1 deletion pkg/oc/cli/cmd/rollout/cancel.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,14 @@ func (o CancelOptions) Run() error {
return runtime.Encode(o.Encoder, rc)
})

if len(patches) == 0 {
allPatchesEmpty := true
for _, patch := range patches {
if len(patch.Patch) > 0 {
allPatchesEmpty = false
break
}
}
if allPatchesEmpty {
kcmdutil.PrintSuccess(o.Mapper, false, o.Out, info.Mapping.Resource, info.Name, false, "already cancelled")
return false
}
Expand Down
2 changes: 0 additions & 2 deletions test/extended/util/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,6 @@ var (
// consistent 500 errors
"should expose prometheus metrics for a route",
"should expose the profiling endpoints",
// super flaky
"should only deploy the last deployment",

`\[Skipped\]`,
`\[Slow\]`,
Expand Down

0 comments on commit 56ac0bf

Please sign in to comment.