Skip to content

Commit

Permalink
[#1352] Extend unit test description
Browse files Browse the repository at this point in the history
  • Loading branch information
fivitti committed May 23, 2024
1 parent 8988701 commit 2133046
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/agent/certstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,11 @@ func (s *CertStore) WriteServerCertFingerprint(fingerprint [32]byte) error {
}

// Removes the server cert fingerprint file.
//
// This function is used currently only for testing purposes. It is necessary
// because is it called by the tests located in another package. The members
// of the CertStore structure are not exported, so the cleanup cannot be done
// directly by the tests.
func (s *CertStore) RemoveServerCertFingerprint() error {
return s.removeIfExist(s.serverCertFingerprintPath)
}
Expand Down

0 comments on commit 2133046

Please sign in to comment.