From 9eca96596f481f11c5b63214fbcd25e0978be91f Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sun, 29 Nov 2020 01:24:46 +0200 Subject: [PATCH] lib/storage: add missing (AccountID, ProjectID) in MetricName.String() test --- lib/storage/metric_name_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/storage/metric_name_test.go b/lib/storage/metric_name_test.go index 4935f78fa7..934f083121 100644 --- a/lib/storage/metric_name_test.go +++ b/lib/storage/metric_name_test.go @@ -15,8 +15,10 @@ func TestMetricNameString(t *testing.T) { } } f(&MetricName{ + AccountID: 123, + ProjectID: 456, MetricGroup: []byte("foobar"), - }, "foobar{}") + }, "AccountID=123, ProjectID=456, foobar{}") f(&MetricName{ MetricGroup: []byte("abc"), Tags: []Tag{ @@ -29,7 +31,7 @@ func TestMetricNameString(t *testing.T) { Value: []byte("123"), }, }, - }, `abc{baz="123",foo="bar"}`) + }, `AccountID=0, ProjectID=0, abc{baz="123",foo="bar"}`) } func TestMetricNameSortTags(t *testing.T) {