mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05: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:
parent
d57b57bddc
commit
0c48b1d993
@ -416,8 +416,7 @@ func newErasureSets(ctx context.Context, endpoints Endpoints, storageDisks []Sto
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if m != i || n != j {
|
if m != i || n != j {
|
||||||
return nil, fmt.Errorf("found a disk in an unexpected location, pool: %d, found (set=%d, disk=%d) expected (set=%d, disk=%d)",
|
return nil, fmt.Errorf("found a disk in an unexpected location, pool: %d, found (set=%d, disk=%d) expected (set=%d, disk=%d): %s(%s)", poolIdx, m, n, i, j, disk, diskID)
|
||||||
poolIdx, m, n, i, j)
|
|
||||||
}
|
}
|
||||||
disk.SetDiskLoc(s.poolIndex, m, n)
|
disk.SetDiskLoc(s.poolIndex, m, n)
|
||||||
s.endpointStrings[m*setDriveCount+n] = disk.String()
|
s.endpointStrings[m*setDriveCount+n] = disk.String()
|
||||||
|
@ -1385,6 +1385,11 @@ func initFSObjectsB(disk string, t *testing.B) (obj ObjectLayer) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal("Unexpected err: ", err)
|
t.Fatal("Unexpected err: ", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newTestConfig(globalMinioDefaultRegion, obj)
|
||||||
|
|
||||||
|
newAllSubsystems()
|
||||||
|
|
||||||
return obj
|
return obj
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user