Cosmetic code changes

Signed-off-by: Diogo Monica <diogo@docker.com>
This commit is contained in:
Diogo Monica 2015-07-17 14:27:42 -07:00
parent 4c805611d0
commit 00f8f56942
4 changed files with 3 additions and 6 deletions

View File

@ -164,7 +164,7 @@ func TestRemoveAllX509FileStore(t *testing.T) {
}
}
// Number of certificates should be 1 since we added the cert
// Number of certificates should be 3 since we added the cert
numCerts := len(store.GetCertificates())
if numCerts != 3 {
t.Fatalf("unexpected number of certificates in store: %d", numCerts)

View File

@ -98,9 +98,6 @@ func (s *X509MemStore) RemoveAll() error {
}
}
s.fingerprintMap = make(map[CertID]*x509.Certificate)
s.nameMap = make(map[string][]CertID)
return nil
}

View File

@ -130,7 +130,7 @@ func TestRemoveAllX509MemStore(t *testing.T) {
}
}
// Number of certificates should be 1 since we added the cert
// Number of certificates should be 3 since we added the cert
numCerts := len(store.GetCertificates())
if numCerts != 3 {
t.Fatalf("unexpected number of certificates in store: %d", numCerts)

View File

@ -35,7 +35,7 @@ func (err ErrCertValidation) Error() string {
type ErrCertExists struct {
}
// ErrInvalidCertificate is returned when an invalid Certificate is given
// ErrCertExists is returned when a Certificate already exists in the key store
func (err ErrCertExists) Error() string {
return fmt.Sprintf("certificate already in the store")
}