mirror of
https://github.com/minio/minio.git
synced 2026-06-04 10:13:48 +08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user