mirror of
https://github.com/pgsty/minio.git
synced 2026-10-12 12:45:58 +03:00
Remove error package and cause functions (#5784)
This commit is contained in:
@@ -21,8 +21,6 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/minio/minio/pkg/errors"
|
||||
)
|
||||
|
||||
// Tests cleanup multipart uploads for erasure coded backend.
|
||||
@@ -68,7 +66,6 @@ func TestXLCleanupStaleMultipartUploads(t *testing.T) {
|
||||
|
||||
// Check if upload id was already purged.
|
||||
if err = obj.AbortMultipartUpload(context.Background(), bucketName, objectName, uploadID); err != nil {
|
||||
err = errors.Cause(err)
|
||||
if _, ok := err.(InvalidUploadID); !ok {
|
||||
t.Fatal("Unexpected err: ", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user