|
|
@ -21,6 +21,7 @@ import ( |
|
|
|
"fmt" |
|
|
|
"fmt" |
|
|
|
"os" |
|
|
|
"os" |
|
|
|
"path/filepath" |
|
|
|
"path/filepath" |
|
|
|
|
|
|
|
"strings" |
|
|
|
"testing" |
|
|
|
"testing" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/minio/minio/pkg/lock" |
|
|
|
"github.com/minio/minio/pkg/lock" |
|
|
@ -173,8 +174,7 @@ func TestFSMigrateObjectWithErr(t *testing.T) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if err = initFormatFS(disk, uuid); err != nil { |
|
|
|
if err = initFormatFS(disk, uuid); err != nil { |
|
|
|
if errorCause(err).Error() != |
|
|
|
if !strings.Contains(errorCause(err).Error(), "Unable to validate 'format.json', corrupted backend format") { |
|
|
|
"Unable to validate 'format.json', corrupted backend format" { |
|
|
|
|
|
|
|
t.Fatal("Should not fail with unexpected", err) |
|
|
|
t.Fatal("Should not fail with unexpected", err) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|