fix: benchmarking test initialization

> go test -run=none -bench=Benchmark github.com/minio/minio/cmd

Runs now without any crashes.

fixes #13380
This commit is contained in:
Harshavardhana
2021-10-08 11:37:19 -07:00
parent d57b57bddc
commit 0c48b1d993
2 changed files with 6 additions and 2 deletions
+5
View File
@@ -1385,6 +1385,11 @@ func initFSObjectsB(disk string, t *testing.B) (obj ObjectLayer) {
if err != nil {
t.Fatal("Unexpected err: ", err)
}
newTestConfig(globalMinioDefaultRegion, obj)
newAllSubsystems()
return obj
}