mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
linting: cli/command/trust: unusedwrite: unused write to field Hashes (govet)
cli/command/trust/sign_test.go:211:9: unusedwrite: unused write to field Hashes (govet)
target.Hashes, target.Length, err = getSignedManifestHashAndSize(notaryRepo, "test")
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user