diff --git a/client/info_test.go b/client/info_test.go index 225c2d4edb..4c5e3176c9 100644 --- a/client/info_test.go +++ b/client/info_test.go @@ -10,8 +10,8 @@ import ( "strings" "testing" + cerrdefs "github.com/containerd/errdefs" "github.com/docker/docker/api/types/system" - "github.com/docker/docker/errdefs" "gotest.tools/v3/assert" is "gotest.tools/v3/assert/cmp" ) @@ -21,7 +21,7 @@ func TestInfoServerError(t *testing.T) { client: newMockClient(errorMock(http.StatusInternalServerError, "Server error")), } _, err := client.Info(context.Background()) - assert.Check(t, is.ErrorType(err, errdefs.IsSystem)) + assert.Check(t, is.ErrorType(err, cerrdefs.IsInternal)) } func TestInfoInvalidResponseJSONError(t *testing.T) {