Skip to content

Commit 2e26ce1

Browse files
committed
e2e/testutils: remove uses of pkg/errors in tests
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 <github@gone.nl>
1 parent 4de5e92 commit 2e26ce1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

e2e/testutils/plugins.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"testing"
1414

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

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

9392
return installPath, nil

0 commit comments

Comments
 (0)