mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Remove error package and cause functions (#5784)
This commit is contained in:
@@ -26,8 +26,6 @@ import (
|
||||
"reflect"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/minio/minio/pkg/errors"
|
||||
)
|
||||
|
||||
// Tests validate bucket LocationConstraint.
|
||||
@@ -117,7 +115,7 @@ func TestValidateFormFieldSize(t *testing.T) {
|
||||
for i, testCase := range testCases {
|
||||
err := validateFormFieldSize(context.Background(), testCase.header)
|
||||
if err != nil {
|
||||
if errors.Cause(err).Error() != testCase.err.Error() {
|
||||
if err.Error() != testCase.err.Error() {
|
||||
t.Errorf("Test %d: Expected error %s, got %s", i+1, testCase.err, err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user