Skip to content

Commit

Permalink
kubectl: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
r2d4 committed Jun 29, 2018
1 parent cfa476c commit 5ddffff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/skaffold/deploy/kubectl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ func TestKubectlCleanup(t *testing.T) {
cfg: &v1alpha2.KubectlDeploy{
Manifests: []string{"test/deployment.yaml"},
},
command: testutil.NewFakeCmd("kubectl --context kubecontext delete --ignore-not-found=true -f -", nil),
command: testutil.NewFakeCmd("kubectl --context kubecontext delete --grace-period=1 --ignore-not-found=true -f -", nil),
},
{
description: "cleanup error",
cfg: &v1alpha2.KubectlDeploy{
Manifests: []string{"test/deployment.yaml"},
},
command: testutil.NewFakeCmd("kubectl --context kubecontext delete --ignore-not-found=true -f -", errors.New("BUG")),
command: testutil.NewFakeCmd("kubectl --context kubecontext delete --grace-period=1 --ignore-not-found=true -f -", errors.New("BUG")),
shouldErr: true,
},
}
Expand Down

0 comments on commit 5ddffff

Please sign in to comment.