From 0ae6fe7c9cea1103a53f0e3078c4eb15c4bdce49 Mon Sep 17 00:00:00 2001 From: Steven Soroka Date: Fri, 16 Oct 2020 17:03:36 -0400 Subject: [PATCH] fix flakey proc test (#8279) --- plugins/inputs/processes/processes_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/inputs/processes/processes_test.go b/plugins/inputs/processes/processes_test.go index 630ecd65e..ca74bd0f5 100644 --- a/plugins/inputs/processes/processes_test.go +++ b/plugins/inputs/processes/processes_test.go @@ -15,10 +15,11 @@ import ( ) func TestProcesses(t *testing.T) { + tester := tester{} processes := &Processes{ Log: testutil.Logger{}, execPS: testExecPS("STAT\n Ss \n S \n Z \n R \n S< \n SNs \n Ss+ \n \n \n"), - readProcFile: readProcFile, + readProcFile: tester.testProcFile, } var acc testutil.Accumulator