From 8f2bf4aef5ca26f350ebb7603f6f60ea79820f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Mon, 19 May 2025 14:14:10 +0200 Subject: [PATCH] client/info_test: use containerd errdefs checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Paweł Gronowski --- client/info_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {