mirror of
https://github.com/minio/minio.git
synced 2026-11-28 23:32:50 +00:00
Remove error package and cause functions (#5784)
This commit is contained in:
1 parent
217fb470a7
commit
cef992a395
51 files changed
+186
-519
No files matched your search
@@ -21,7 +21,6 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/minio/minio/pkg/disk"
|
||||
"github.com/minio/minio/pkg/errors"
|
||||
)
|
||||
|
||||
type testStorageRPCServer struct {
|
||||
@@ -68,9 +67,8 @@ func createTestStorageServer(t *testing.T) *testStorageRPCServer {
|
||||
}
|
||||
|
||||
func errorIfInvalidToken(t *testing.T, err error) {
|
||||
realErr := errors.Cause(err)
|
||||
if realErr != errInvalidToken {
|
||||
t.Errorf("Expected to fail with %s but failed with %s", errInvalidToken, realErr)
|
||||
if err != errInvalidToken {
|
||||
t.Errorf("Expected to fail with %s but failed with %s", errInvalidToken, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user