mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-11 05:47:27 -08:00
fix test panic
Signed-off-by: Callum Styan <callumstyan@gmail.com> Signed-off-by: Nicolás Pazos <npazosmendez@gmail.com>
This commit is contained in:
parent
7630577850
commit
18bf4b8c0e
|
@ -888,7 +888,7 @@ func (c *mockChunkIterator) Err() error {
|
|||
}
|
||||
|
||||
func TestLenFormat(t *testing.T) {
|
||||
r := rwSymbolTable{}
|
||||
r := newRwSymbolTable()
|
||||
ls := labels.FromStrings("asdf", "qwer", "zxcv", "1234")
|
||||
encoded := labelsToUint32SliceLen(ls, &r, nil)
|
||||
decoded := Uint32LenRefToLabels(r.LabelsData(), encoded)
|
||||
|
|
Loading…
Reference in a new issue