Skip to content

Commit 3fd823b

Browse files
committed
remove testcase with invalid input
1 parent bdd3a4f commit 3fd823b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pkg/client/options_test.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,6 @@ var _ = Describe("ForceOwnership", func() {
307307
})
308308

309309
var _ = Describe("HasLabels", func() {
310-
const invalidLongKey = "axahm2EJ8Phiephe2eixohbee9eGeiyees1thuozi1xoh0GiuH3diewi8iem7Nui"
311-
312310
It("Should produce hasLabels in given order", func() {
313311
listOpts := &client.ListOptions{}
314312

@@ -317,14 +315,6 @@ var _ = Describe("HasLabels", func() {
317315
Expect(listOpts.LabelSelector.String()).To(Equal("labelApe,labelFox"))
318316
})
319317

320-
It("Should produce an empty selector when given invalid input", func() {
321-
listOpts := &client.ListOptions{}
322-
// construct a valid hasLabels selector
323-
hasLabel := client.HasLabels([]string{invalidLongKey})
324-
hasLabel.ApplyToList(listOpts)
325-
Expect(listOpts.LabelSelector.Empty()).To(BeTrue())
326-
})
327-
328318
It("Should add hasLabels to existing hasLabels selector", func() {
329319
listOpts := &client.ListOptions{}
330320

0 commit comments

Comments
 (0)