lib/storage: add missing (AccountID, ProjectID) in MetricName.String() test

This commit is contained in:
Aliaksandr Valialkin 2020-11-29 01:24:46 +02:00
parent 2385ac11c0
commit 9eca96596f

View File

@ -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) {