test(inputs.procstat): Resolve flaky test when PID exists (#14856)

This commit is contained in:
Joshua Powers 2024-02-20 15:37:08 -05:00 committed by GitHub
parent b19389533c
commit 8346f36682
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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) {