diff --git a/cli/command/trust/sign_test.go b/cli/command/trust/sign_test.go index 83863de953..632403ebf5 100644 --- a/cli/command/trust/sign_test.go +++ b/cli/command/trust/sign_test.go @@ -207,8 +207,7 @@ func TestAddStageSigners(t *testing.T) { func TestGetSignedManifestHashAndSize(t *testing.T) { notaryRepo, err := client.NewFileCachedRepository(t.TempDir(), "gun", "https://localhost", nil, passphrase.ConstantRetriever(passwd), trustpinning.TrustPinConfig{}) assert.NilError(t, err) - target := &client.Target{} - target.Hashes, target.Length, err = getSignedManifestHashAndSize(notaryRepo, "test") + _, _, err = getSignedManifestHashAndSize(notaryRepo, "test") assert.Error(t, err, "client is offline") }