Skip to content

Commit

Permalink
Add samples check.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdurham committed Jan 13, 2025
1 parent 8b49178 commit b9d264d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/component/prometheus/write/queue/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func TestE2E(t *testing.T) {
t.Helper()
for i := 0; i < samples.Len(); i++ {
s := samples.Get(i)
require.True(t, len(s.Samples) == 0)
require.True(t, len(s.Labels) == 1)
histSame(t, hist(int(s.Histograms[0].Sum)), s.Histograms[0])
}
Expand All @@ -107,6 +108,7 @@ func TestE2E(t *testing.T) {
t.Helper()
for i := 0; i < samples.Len(); i++ {
s := samples.Get(i)
require.True(t, len(s.Samples) == 0)
require.True(t, len(s.Labels) == 1)
histFloatSame(t, histFloat(int(s.Histograms[0].Sum)), s.Histograms[0])
}
Expand Down

0 comments on commit b9d264d

Please sign in to comment.