Adding initial dot which matches the format for the return of the filepath.Ext() funciton.
This commit is contained in:
parent
c77381ff1f
commit
cebff8e1d2
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue