@@ -168,7 +168,7 @@ func InitAPNSClient() error {
|
||||
case ".pem":
|
||||
CertificatePemIos, err = certificate.FromPemFile(PushConf.Ios.KeyPath, PushConf.Ios.Password)
|
||||
default:
|
||||
err = errors.New("Wrong Certificate key extension.")
|
||||
err = errors.New("wrong certificate key extension")
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
|
||||
@@ -438,7 +438,7 @@ func TestWrongIosCertificateExt(t *testing.T) {
|
||||
err := InitAPNSClient()
|
||||
|
||||
assert.Error(t, err)
|
||||
assert.Equal(t, "Wrong Certificate key extension.", err.Error())
|
||||
assert.Equal(t, "wrong certificate key extension", err.Error())
|
||||
}
|
||||
|
||||
func TestAPNSClientDevHost(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user