We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9631883 commit def202cCopy full SHA for def202c
1 file changed
process_test.go
@@ -197,7 +197,7 @@ func TestFindProcessInit(t *testing.T) {
197
198
func BenchmarkProcesses(b *testing.B) {
199
b.ReportAllocs()
200
- for i := 0; i < b.N; i++ {
+ for b.Loop() {
201
_, err := ps.Processes()
202
if err != nil {
203
b.Fatalf("Processes: %v", err)
@@ -209,8 +209,7 @@ func BenchmarkFindProcess(b *testing.B) {
209
pid := os.Getpid()
210
211
212
- b.ResetTimer()
213
214
_, err := ps.FindProcess(pid)
215
216
b.Fatalf("FindProcess: %v", err)
0 commit comments