From 8346f36682d432603f7190968c6f07896d66d244 Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Tue, 20 Feb 2024 15:37:08 -0500 Subject: [PATCH] test(inputs.procstat): Resolve flaky test when PID exists (#14856) --- plugins/inputs/procstat/procstat_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/procstat/procstat_test.go b/plugins/inputs/procstat/procstat_test.go index 50d7bfbb4..922306669 100644 --- a/plugins/inputs/procstat/procstat_test.go +++ b/plugins/inputs/procstat/procstat_test.go @@ -589,7 +589,7 @@ func TestProcstatLookupMetric(t *testing.T) { var acc testutil.Accumulator require.NoError(t, p.Gather(&acc)) - require.Len(t, acc.GetTelegrafMetrics(), 1) + require.NotEmpty(t, acc.GetTelegrafMetrics()) } func TestGather_SameTimestamps(t *testing.T) {