Adding initial dot which matches the format for the return of the filepath.Ext() funciton.

This commit is contained in:
Renan DelValle 2020-02-25 12:48:57 -08:00
parent c77381ff1f
commit cebff8e1d2
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
2 changed files with 2 additions and 2 deletions

View file

@ -321,7 +321,7 @@ func NewRealisClient(options ...ClientOption) (Realis, error) {
config.timeoutms = 10000
config.backoff = defaultBackoff
config.logger = &LevelLogger{logger: log.New(os.Stdout, "realis: ", log.Ltime|log.Ldate|log.LUTC)}
config.certExtensions = map[string]struct{}{"crt": {}, "pem": {}, "key": {}}
config.certExtensions = map[string]struct{}{".crt": {}, ".pem": {}, ".key": {}}
// Save options to recreate client if a connection error happens
config.options = options

View file

@ -102,7 +102,7 @@ func TestCurrentBatchCalculator(t *testing.T) {
}
func TestCertPoolCreator(t *testing.T) {
extensions := map[string]struct{}{"key": {}, "pem": {}, "crt": {}}
extensions := map[string]struct{}{".pem": {}}
_, err := createCertPool("examples/certs", extensions)
assert.NoError(t, err)