mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
fix: use meta.Erasure.Index for GetObject() to reconstruct object (#10764)
This commit is contained in:
@@ -47,6 +47,7 @@ func TestAddObjectPart(t *testing.T) {
|
||||
|
||||
// Setup.
|
||||
fi := newFileInfo("test-object", 8, 8)
|
||||
fi.Erasure.Index = 1
|
||||
if !fi.IsValid() {
|
||||
t.Fatalf("unable to get xl meta")
|
||||
}
|
||||
@@ -80,6 +81,7 @@ func TestObjectPartIndex(t *testing.T) {
|
||||
|
||||
// Setup.
|
||||
fi := newFileInfo("test-object", 8, 8)
|
||||
fi.Erasure.Index = 1
|
||||
if !fi.IsValid() {
|
||||
t.Fatalf("unable to get xl meta")
|
||||
}
|
||||
@@ -108,6 +110,7 @@ func TestObjectPartIndex(t *testing.T) {
|
||||
func TestObjectToPartOffset(t *testing.T) {
|
||||
// Setup.
|
||||
fi := newFileInfo("test-object", 8, 8)
|
||||
fi.Erasure.Index = 1
|
||||
if !fi.IsValid() {
|
||||
t.Fatalf("unable to get xl meta")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user