diff --git a/pkg/sync/sync_test.go b/pkg/sync/sync_test.go index 9dfdc6086c79..6513537f49bf 100644 --- a/pkg/sync/sync_test.go +++ b/pkg/sync/sync_test.go @@ -646,7 +646,9 @@ func TestMatchObjects(t *testing.T) { {rules: []rule{{pattern: "a**b"}}, key: "b/c/d/b/", want: true}, {rules: []rule{{pattern: "a?**"}}, key: "a/a", want: true}, {rules: []rule{{pattern: "**a"}}, key: "a"}, + {rules: []rule{{pattern: "a**"}}, key: "a"}, {rules: []rule{{pattern: "a**a"}}, key: "a", want: true}, + {rules: []rule{{pattern: "aa**a"}}, key: "aa", want: true}, } for _, c := range tests { if got := matchKey(c.rules, c.key); got != c.want {