From 357f886f9709ca80ab28494d86473aac28487302 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sun, 29 Nov 2020 01:26:57 +0200 Subject: [PATCH] Revert "lib/storage: add missing (AccountID, ProjectID) in MetricName.String() test" This reverts commit f3e80eb70e493620e42a0cc22a62c9af75076c77, since it isn't needed for single-node version of VictoriaMetrics --- lib/storage/metric_name_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/storage/metric_name_test.go b/lib/storage/metric_name_test.go index 796a6a7da..18d1cda8f 100644 --- a/lib/storage/metric_name_test.go +++ b/lib/storage/metric_name_test.go @@ -15,10 +15,8 @@ func TestMetricNameString(t *testing.T) { } } f(&MetricName{ - AccountID: 123, - ProjectID: 456, MetricGroup: []byte("foobar"), - }, "AccountID=123, ProjectID=456, foobar{}") + }, "foobar{}") f(&MetricName{ MetricGroup: []byte("abc"), Tags: []Tag{ @@ -31,7 +29,7 @@ func TestMetricNameString(t *testing.T) { Value: []byte("123"), }, }, - }, `AccountID=0, ProjectID=0, abc{baz="123",foo="bar"}`) + }, `abc{baz="123",foo="bar"}`) } func TestMetricNameSortTags(t *testing.T) {