diff --git a/api/resmap/selector_test.go b/api/resmap/selector_test.go index 8fb79d865..f4ef6b2ea 100644 --- a/api/resmap/selector_test.go +++ b/api/resmap/selector_test.go @@ -166,10 +166,16 @@ func TestFindPatchTargets(t *testing.T) { }, { target: types.Selector{ - Namespace: "foo", + Namespace: "NotMatched", }, count: 0, }, + { + target: types.Selector{ + Namespace: "ns1", + }, + count: 1, + }, } for _, testcase := range testcases { actual, err := rm.Select(testcase.target)