mirror of
https://github.com/prometheus/prometheus.git
synced 2025-12-03 16:41:05 +01:00
fix(lint): Changing tests
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
This commit is contained in:
parent
73904b4c75
commit
f71f911040
@ -17,8 +17,9 @@ import (
|
||||
"errors"
|
||||
"testing"
|
||||
|
||||
"github.com/prometheus/prometheus/model/labels"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/prometheus/prometheus/model/labels"
|
||||
)
|
||||
|
||||
type BucketExpectation struct {
|
||||
@ -187,7 +188,7 @@ func TestConvertNHCBToClassicHistogram(t *testing.T) {
|
||||
})
|
||||
require.Equal(t, tt.expectErr, err != nil, "unexpected error: %v", err)
|
||||
if !tt.expectErr {
|
||||
require.Equal(t, len(tt.expected.buckets), len(got.buckets))
|
||||
require.Len(t, got.buckets, len(tt.expected.buckets))
|
||||
for i, expBucket := range tt.expected.buckets {
|
||||
require.Equal(t, expBucket, got.buckets[i])
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user