mirror of https://github.com/docker/docs.git
Removing doubling of string in test
Signed-off-by: Diogo Monica <diogo@docker.com>
This commit is contained in:
parent
6b23e7d249
commit
f3a7fdf211
|
|
@ -261,12 +261,11 @@ func TestGetDecryptedWithInvalidPassphrase(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGetDecryptedWithConsistentlyInvalidPassphrase(t *testing.T) {
|
func TestGetDecryptedWithConsistentlyInvalidPassphrase(t *testing.T) {
|
||||||
|
|
||||||
// Make a passphraseRetriever that always returns a different passphrase in order to test
|
// Make a passphraseRetriever that always returns a different passphrase in order to test
|
||||||
// decryption failure
|
// decryption failure
|
||||||
a := "aaaaaaaaaaaaa"
|
a := "aaaaaaaaaaaaa"
|
||||||
var consistentlyInvalidPassphraseRetriever = func(keyID string, alias string, createNew bool, numAttempts int) (string, bool, error) {
|
var consistentlyInvalidPassphraseRetriever = func(keyID string, alias string, createNew bool, numAttempts int) (string, bool, error) {
|
||||||
a = a + a
|
a = a + "a"
|
||||||
return a, false, nil
|
return a, false, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue