Skip to content

Commit

Permalink
🐛 ✅ remove invalid import package from internal/errors/mysql_test.go (#…
Browse files Browse the repository at this point in the history
…894)

Signed-off-by: vankichi <[email protected]>
  • Loading branch information
vankichi authored Dec 21, 2020
1 parent f8d5097 commit f72ff79
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions internal/errors/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"reflect"
"testing"

"github.com/pkg/errors"
"go.uber.org/goleak"
)

Expand Down Expand Up @@ -94,7 +93,6 @@ func TestErrMySQLNotFoundIdentity_Error(t *testing.T) {
if err := test.checkFunc(test.want, got); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand All @@ -115,8 +113,8 @@ func TestErrMySQLNotFoundIdentity_Unwrap(t *testing.T) {
afterFunc func()
}
defaultCheckFunc := func(w want, err error) error {
if !errors.Is(err, w.err) {
return errors.Errorf("got_error: \"%#v\",\n\t\t\t\twant: \"%#v\"", err, w.err)
if !Is(err, w.err) {
return Errorf("got_error: \"%#v\",\n\t\t\t\twant: \"%#v\"", err, w.err)
}
return nil
}
Expand Down Expand Up @@ -168,7 +166,6 @@ func TestErrMySQLNotFoundIdentity_Unwrap(t *testing.T) {
if err := test.checkFunc(test.want, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -239,7 +236,6 @@ func TestIsErrMySQLNotFound(t *testing.T) {
if err := test.checkFunc(test.want, got); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -313,7 +309,6 @@ func TestErrMySQLInvalidArgumentIdentity_Error(t *testing.T) {
if err := test.checkFunc(test.want, got); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand All @@ -334,8 +329,8 @@ func TestErrMySQLInvalidArgumentIdentity_Unwrap(t *testing.T) {
afterFunc func()
}
defaultCheckFunc := func(w want, err error) error {
if !errors.Is(err, w.err) {
return errors.Errorf("got_error: \"%#v\",\n\t\t\t\twant: \"%#v\"", err, w.err)
if !Is(err, w.err) {
return Errorf("got_error: \"%#v\",\n\t\t\t\twant: \"%#v\"", err, w.err)
}
return nil
}
Expand Down Expand Up @@ -387,7 +382,6 @@ func TestErrMySQLInvalidArgumentIdentity_Unwrap(t *testing.T) {
if err := test.checkFunc(test.want, err); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}
Expand Down Expand Up @@ -458,7 +452,6 @@ func TestIsErrMySQLInvalidArgument(t *testing.T) {
if err := test.checkFunc(test.want, got); err != nil {
tt.Errorf("error = %v", err)
}

})
}
}

0 comments on commit f72ff79

Please sign in to comment.