Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdurham committed Sep 11, 2024
1 parent 175aafb commit 57e6ddd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ func TestLabels(t *testing.T) {
strMap := make(map[string]uint32)

sg.Series[0].FillLabelMapping(strMap)
require.True(t, len(sg.Series) == len(unique))
stringsSlice := make([]string, len(strMap))
for k, v := range strMap {
stringsSlice[v] = k
Expand All @@ -42,6 +41,7 @@ func TestLabels(t *testing.T) {
series1 := newSg.Series[0]
series2 := sg.Series[0]
require.Len(t, series2.Labels, len(series1.Labels))
// Ensure we were able to convert back and forth properly.
for i, lbl := range series2.Labels {
require.Equal(t, lbl.Name, series1.Labels[i].Name)
require.Equal(t, lbl.Value, series1.Labels[i].Value)
Expand Down

0 comments on commit 57e6ddd

Please sign in to comment.