diff --git a/cli/command/manifest/inspect_test.go b/cli/command/manifest/inspect_test.go index 6f5fd1c00c..6468400a1e 100644 --- a/cli/command/manifest/inspect_test.go +++ b/cli/command/manifest/inspect_test.go @@ -61,10 +61,10 @@ func fullImageManifest(t *testing.T, ref reference.Named) types.ImageManifest { } func TestInspectCommandLocalManifestNotFound(t *testing.T) { - store := store.NewStore(t.TempDir()) + refStore := store.NewStore(t.TempDir()) cli := test.NewFakeCli(nil) - cli.SetManifestStore(store) + cli.SetManifestStore(refStore) cmd := newInspectCommand(cli) cmd.SetOut(io.Discard) @@ -74,10 +74,10 @@ func TestInspectCommandLocalManifestNotFound(t *testing.T) { } func TestInspectCommandNotFound(t *testing.T) { - store := store.NewStore(t.TempDir()) + refStore := store.NewStore(t.TempDir()) cli := test.NewFakeCli(nil) - cli.SetManifestStore(store) + cli.SetManifestStore(refStore) cli.SetRegistryClient(&fakeRegistryClient{ getManifestFunc: func(_ context.Context, _ reference.Named) (types.ImageManifest, error) { return types.ImageManifest{}, errors.New("missing") @@ -95,13 +95,13 @@ func TestInspectCommandNotFound(t *testing.T) { } func TestInspectCommandLocalManifest(t *testing.T) { - store := store.NewStore(t.TempDir()) + refStore := store.NewStore(t.TempDir()) cli := test.NewFakeCli(nil) - cli.SetManifestStore(store) + cli.SetManifestStore(refStore) namedRef := ref(t, "alpine:3.0") imageManifest := fullImageManifest(t, namedRef) - err := store.Save(ref(t, "list:v1"), namedRef, imageManifest) + err := refStore.Save(ref(t, "list:v1"), namedRef, imageManifest) assert.NilError(t, err) cmd := newInspectCommand(cli) @@ -113,10 +113,10 @@ func TestInspectCommandLocalManifest(t *testing.T) { } func TestInspectcommandRemoteManifest(t *testing.T) { - store := store.NewStore(t.TempDir()) + refStore := store.NewStore(t.TempDir()) cli := test.NewFakeCli(nil) - cli.SetManifestStore(store) + cli.SetManifestStore(refStore) cli.SetRegistryClient(&fakeRegistryClient{ getManifestFunc: func(_ context.Context, ref reference.Named) (types.ImageManifest, error) { return fullImageManifest(t, ref), nil