diff --git a/trustmanager/keyfilestore_test.go b/trustmanager/keyfilestore_test.go index d6ab00a789..a04f026183 100644 --- a/trustmanager/keyfilestore_test.go +++ b/trustmanager/keyfilestore_test.go @@ -261,12 +261,11 @@ func TestGetDecryptedWithInvalidPassphrase(t *testing.T) { } func TestGetDecryptedWithConsistentlyInvalidPassphrase(t *testing.T) { - // Make a passphraseRetriever that always returns a different passphrase in order to test // decryption failure a := "aaaaaaaaaaaaa" var consistentlyInvalidPassphraseRetriever = func(keyID string, alias string, createNew bool, numAttempts int) (string, bool, error) { - a = a + a + a = a + "a" return a, false, nil }