diff --git a/remotes/docker/fetcher.go b/remotes/docker/fetcher.go index a7b3cb8c4..c8d75f0f5 100644 --- a/remotes/docker/fetcher.go +++ b/remotes/docker/fetcher.go @@ -26,11 +26,10 @@ import ( "path" "strings" - "github.com/docker/distribution/registry/api/errcode" - "github.com/containerd/containerd/errdefs" "github.com/containerd/containerd/images" "github.com/containerd/containerd/log" + "github.com/docker/distribution/registry/api/errcode" ocispec "github.com/opencontainers/image-spec/specs-go/v1" "github.com/pkg/errors" "github.com/sirupsen/logrus" diff --git a/remotes/docker/fetcher_test.go b/remotes/docker/fetcher_test.go index 4692d26ad..b6a6639ea 100644 --- a/remotes/docker/fetcher_test.go +++ b/remotes/docker/fetcher_test.go @@ -99,8 +99,8 @@ func TestFetcherOpen(t *testing.T) { } } -// New set of test to test new error cases -func Test_dockerFetcher_open(t *testing.T) { +// New set of tests to test new error cases +func TestDockerFetcherOpen(t *testing.T) { tests := []struct { name string mockedStatus int