mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
lib/storage: add missing (AccountID, ProjectID) in MetricName.String() test
This commit is contained in:
parent
32869e4c0f
commit
ace969d595
1 changed files with 4 additions and 2 deletions
|
@ -15,8 +15,10 @@ func TestMetricNameString(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
f(&MetricName{
|
f(&MetricName{
|
||||||
|
AccountID: 123,
|
||||||
|
ProjectID: 456,
|
||||||
MetricGroup: []byte("foobar"),
|
MetricGroup: []byte("foobar"),
|
||||||
}, "foobar{}")
|
}, "AccountID=123, ProjectID=456, foobar{}")
|
||||||
f(&MetricName{
|
f(&MetricName{
|
||||||
MetricGroup: []byte("abc"),
|
MetricGroup: []byte("abc"),
|
||||||
Tags: []Tag{
|
Tags: []Tag{
|
||||||
|
@ -29,7 +31,7 @@ func TestMetricNameString(t *testing.T) {
|
||||||
Value: []byte("123"),
|
Value: []byte("123"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}, `abc{baz="123",foo="bar"}`)
|
}, `AccountID=0, ProjectID=0, abc{baz="123",foo="bar"}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestMetricNameSortTags(t *testing.T) {
|
func TestMetricNameSortTags(t *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue