diff --git a/pkg/fileutils/fileutils_test.go b/pkg/fileutils/fileutils_test.go index dc50eac30d..7876ddf4b2 100644 --- a/pkg/fileutils/fileutils_test.go +++ b/pkg/fileutils/fileutils_test.go @@ -240,3 +240,10 @@ func TestCreateIfNotExistsFile(t *testing.T) { t.Errorf("Should have been a file, seems it's not") } } + +func BenchmarkGetTotalUsedFds(b *testing.B) { + b.ReportAllocs() + for i := 0; i < b.N; i++ { + _ = GetTotalUsedFds() + } +}