From b9d264de212ed0a82e898a633c0999352bf973f9 Mon Sep 17 00:00:00 2001 From: matt durham Date: Mon, 13 Jan 2025 14:57:05 -0500 Subject: [PATCH] Add samples check. --- internal/component/prometheus/write/queue/e2e_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/component/prometheus/write/queue/e2e_test.go b/internal/component/prometheus/write/queue/e2e_test.go index cd27669cc..634f48f60 100644 --- a/internal/component/prometheus/write/queue/e2e_test.go +++ b/internal/component/prometheus/write/queue/e2e_test.go @@ -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]) } @@ -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]) }