Skip to content

Commit

Permalink
e2e/testutils: remove uses of pkg/errors in tests
Browse files Browse the repository at this point in the history
While there may be reasons to keep pkg/errors in production code,
we don't need them for these tests.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Feb 1, 2025
1 parent 4de5e92 commit 2e26ce1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions e2e/testutils/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"testing"

"github.com/docker/docker/api/types"
"github.com/pkg/errors"
"gotest.tools/v3/assert"
"gotest.tools/v3/fs"
"gotest.tools/v3/icmd"
Expand Down Expand Up @@ -87,7 +86,7 @@ func buildPlugin(t *testing.T, ctx context.Context) (string, error) {
cmd.Env = append(os.Environ(), "CGO_ENABLED=0")

if out, err := cmd.CombinedOutput(); err != nil {
return "", errors.Wrapf(err, "error building basic plugin bin: %s", string(out))
return "", fmt.Errorf("error building basic plugin bin: %s: %w", string(out), err)
}

return installPath, nil
Expand Down

0 comments on commit 2e26ce1

Please sign in to comment.