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:
Callum Styan 2023-11-23 11:32:45 -08:00 committed by Nicolás Pazos
parent 7630577850
commit 18bf4b8c0e

View file

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