diff --git a/pkg/naming/metrics_query_test.go b/pkg/naming/metrics_query_test.go index df4cc8de..36f0d110 100644 --- a/pkg/naming/metrics_query_test.go +++ b/pkg/naming/metrics_query_test.go @@ -83,14 +83,6 @@ func TestBuildSelector(t *testing.T) { return mq } - mustNewNonNamespacedQuery := func(queryTemplate string, namespaced bool) MetricsQuery { - mq, err := NewMetricsQuery(queryTemplate, &resourceConverterMock{namespaced}, false) - if err != nil { - t.Fatal(err) - } - return mq - } - mustNewLabelRequirement := func(key string, op selection.Operator, vals []string) *labels.Requirement { req, err := labels.NewRequirement(key, op, vals) if err != nil { @@ -212,21 +204,6 @@ func TestBuildSelector(t *testing.T) { ), }, - { - name: "multiple LabelValuesByName values with namespace disabled", - - mq: mustNewNonNamespacedQuery(`<> <>`, true), - metricSelector: labels.NewSelector(), - resource: schema.GroupResource{Group: "group", Resource: "resource"}, - namespace: "default", - names: []string{"bar", "baz"}, - - check: checks( - hasError(nil), - hasSelector(" bar|baz"), - ), - }, - { name: "single GroupBy value",