Skip to content

Commit 45d81f8

Browse files
committed
cli/command: 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 a85a94f commit 45d81f8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cli/command/cli_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package command
33
import (
44
"bytes"
55
"context"
6+
"errors"
67
"fmt"
78
"io"
89
"net"
@@ -22,7 +23,6 @@ import (
2223
"github.com/docker/docker/api"
2324
"github.com/docker/docker/api/types"
2425
"github.com/docker/docker/client"
25-
"github.com/pkg/errors"
2626
"gotest.tools/v3/assert"
2727
"gotest.tools/v3/fs"
2828
)

cli/command/utils_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"bufio"
55
"bytes"
66
"context"
7+
"errors"
78
"fmt"
89
"io"
910
"os"
@@ -17,7 +18,6 @@ import (
1718
"github.com/docker/cli/cli/command"
1819
"github.com/docker/cli/cli/streams"
1920
"github.com/docker/cli/internal/test"
20-
"github.com/pkg/errors"
2121
"gotest.tools/v3/assert"
2222
)
2323

0 commit comments

Comments
 (0)