Update model/histogram/histogram_test.go

Signed-off-by: George Krajcsovits <krajorama@users.noreply.github.com>
This commit is contained in:
George Krajcsovits 2024-06-24 07:51:56 +02:00 committed by GitHub
parent a3d92dd72f
commit f45709e710
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -613,9 +613,11 @@ func TestCustomBucketsHistogramToFloat(t *testing.T) {
require.NoError(t, h.Validate())
for _, c := range cases {
t.Run(c.name, func(t *testing.T) {
hStr := h.String()
fh := h.ToFloat(c.fh)
require.NoError(t, fh.Validate())
require.Equal(t, h.String(), fh.String())
require.Equal(t, hStr, h.String())
require.Equal(t, hStr, fh.String())
})
}
}