Skip to content

Commit

Permalink
chore: fix make-test fail (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
1aal authored Nov 14, 2023
1 parent 844002c commit 068e85a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/action/edit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
"github.com/apecloud/kbcli/pkg/types"
)

var _ = Describe("List", func() {
var _ = Describe("Edit", func() {
var (
streams genericiooptions.IOStreams
tf *cmdtesting.TestFactory
Expand Down
6 changes: 3 additions & 3 deletions pkg/action/patch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ var _ = Describe("Patch", func() {

It("run", func() {
cmd := &cobra.Command{}
o := NewPatchOptions(tf, streams, types.ClusterGVR())
o.Names = []string{"c1"}
o := NewPatchOptions(tf, streams, types.CRDGVR())
o.Names = []string{"test"}
o.AddFlags(cmd)

o.Patch = "{terminationPolicy: Delete}"
// The resource "CRD" expect not found in mock K8s
Expect(o.Run(cmd)).Should(HaveOccurred())
})
})

0 comments on commit 068e85a

Please sign in to comment.