From 2374cef64192f5a5b3934717aaaf583959f21dea Mon Sep 17 00:00:00 2001 From: paulfantom Date: Fri, 17 May 2019 14:36:02 +0200 Subject: [PATCH] pkg/naming: fix unit test --- pkg/naming/metrics_query_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/naming/metrics_query_test.go b/pkg/naming/metrics_query_test.go index 9a66df0f..1970d8c3 100644 --- a/pkg/naming/metrics_query_test.go +++ b/pkg/naming/metrics_query_test.go @@ -341,17 +341,16 @@ func TestBuildExternalSelector(t *testing.T) { ), }, { - name: "multiple LabelValuesByName", + name: "single LabelValuesByName with multiple selectors", mq: mustNewQuery(`<<.LabelValuesByName>>`, false), metricSelector: labels.NewSelector().Add( - *mustNewLabelRequirement("foo", selection.Equals, []string{"bar"}), - *mustNewLabelRequirement("qux", selection.In, []string{"bar", "baz"}), + *mustNewLabelRequirement("foo", selection.In, []string{"bar", "baz"}), ), check: checks( hasError(nil), - hasSelector("map[foo:bar qux:bar|baz]"), + hasSelector("map[foo:bar|baz]"), ), }, }