Skip to content

Commit

Permalink
fix: remove pkgerrors test
Browse files Browse the repository at this point in the history
  • Loading branch information
jvallesm committed Dec 15, 2023
1 parent ca196ff commit 03cb8b0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions errmsg/errmsg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"testing"

qt "github.com/frankban/quicktest"
pkgerrors "github.com/pkg/errors"
)

func TestAddAndExtractMessage(t *testing.T) {
Expand Down Expand Up @@ -39,15 +38,6 @@ func TestAddAndExtractMessage(t *testing.T) {
AddMessage(errors.New("boom"), "Something went wrong."),
),
},
{
name: "message in wrapped error (pkgerrors.Wrap)",
wantMsg: "Something went wrong.",
wantErr: "bang: boom",
err: pkgerrors.Wrap(
AddMessage(pkgerrors.New("boom"), "Something went wrong."),
"bang",
),
},
{
name: "message in joint error",
wantMsg: "Something went wrong.",
Expand Down

0 comments on commit 03cb8b0

Please sign in to comment.