client/image: use containerd errdefs checks

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski
2025-05-19 14:14:05 +02:00
committed by Sebastiaan van Stijn
parent 370b7e65fc
commit a1035ec59b
17 changed files with 43 additions and 43 deletions

View File

@@ -8,7 +8,7 @@ import (
"net/url"
"testing"
"github.com/docker/docker/errdefs"
cerrdefs "github.com/containerd/errdefs"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
@@ -20,7 +20,7 @@ func TestImageLoadError(t *testing.T) {
}
_, err := client.ImageLoad(context.Background(), nil, ImageLoadWithQuiet(true))
assert.Check(t, is.ErrorType(err, errdefs.IsSystem))
assert.Check(t, is.ErrorType(err, cerrdefs.IsInternal))
}
func TestImageLoad(t *testing.T) {