diff --git a/path_test.go b/path_test.go index e1386140..2dc2e8a5 100644 --- a/path_test.go +++ b/path_test.go @@ -94,7 +94,7 @@ func TestPathCleanMallocs(t *testing.T) { func BenchmarkPathClean(b *testing.B) { b.ReportAllocs() - for { + for b.Loop() { for _, test := range cleanTests { cleanPath(test.path) }