Skip to content

Commit 9a1406d

Browse files
committed
disable duplication linter on predicate tests
Signed-off-by: Bruce Ma <[email protected]>
1 parent dad8159 commit 9a1406d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/predicate/predicate_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ var _ = Describe("Predicate", func() {
414414

415415
})
416416

417+
// nolint:dupl
417418
Describe("When checking an AnnotationChangedPredicate", func() {
418419
instance := predicate.AnnotationChangedPredicate{}
419420
Context("Where the old object is missing", func() {
@@ -610,6 +611,9 @@ var _ = Describe("Predicate", func() {
610611
})
611612
})
612613

614+
// LabelChangedPredicates has almost identical test cases as AnnotationChangedPredicates,
615+
// so the duplication linter should be muted here.
616+
//nolint:dupl
613617
Describe("When checking a LabelChangedPredicate", func() {
614618
instance := predicate.LabelChangedPredicate{}
615619
Context("Where the old object is missing", func() {

0 commit comments

Comments
 (0)