Removing doubling of string in test

Signed-off-by: Diogo Monica <diogo@docker.com>
This commit is contained in:
Diogo Monica 2015-07-20 11:42:10 -07:00
parent 6b23e7d249
commit f3a7fdf211
1 changed files with 1 additions and 2 deletions

View File

@ -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
} }