Skip to content

Commit

Permalink
Fix issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdurham committed Oct 15, 2024
1 parent 8f1e4cd commit 79f3922
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/component/prometheus/write/queue/e2e_stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,12 +622,14 @@ func runE2eStats(t *testing.T, test statsTest) {
dtos, gatherErr := reg.Gather()
require.NoError(t, gatherErr)
// Check if we have some valid metrics.
found := 0
for _, d := range dtos {
if getValue(d) > 0 {
return true
found++
}
}
return false
// Make sure we have a few metrics.
return found > 1
}, 10*time.Second, 1*time.Second)
metrics := make(map[string]float64)
dtos, err := reg.Gather()
Expand Down

0 comments on commit 79f3922

Please sign in to comment.