Skip to content

Commit 19191ab

Browse files
committed
fix test
1 parent 47ebadd commit 19191ab

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

checks/process_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,7 @@ func TestProcessInclusions(t *testing.T) {
488488
assert.True(t, len(processInclusions) <= maxTopProcesses, fmt.Sprintf("Way too many top processes reported: %d > %d", len(processInclusions), maxTopProcesses))
489489

490490
for _, proc := range processInclusions {
491-
pids := make([]int, 0)
492-
pids = append(pids, int(proc.Pid))
491+
pids := int(proc.Pid)
493492
assert.Contains(t, tc.expectedPids, pids, fmt.Sprintf("Expected pids/tags: %v, found pid/tag: %v", tc.expectedPids, pids))
494493
}
495494
})

0 commit comments

Comments
 (0)