mirror of https://github.com/statping/statping
push notification update
parent
220080e323
commit
a554f4c84a
|
@ -152,7 +152,7 @@ func pushRequest(msg *PushArray) error {
|
|||
if os.Getenv("GO_ENV") == "test" {
|
||||
url = "https://pushdev.statping.com/api/push"
|
||||
}
|
||||
_, _, err := utils.HttpRequest(url, "POST", "application/json", nil, bytes.NewBuffer(body), time.Duration(10*time.Second))
|
||||
_, _, err := utils.HttpRequest(url, "POST", "application/json", nil, bytes.NewBuffer(body), time.Duration(20*time.Second))
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ func TestMobileNotifier(t *testing.T) {
|
|||
mobile.Var1 = MOBILE_ID
|
||||
mobile.Var2 = MOBILE_NUMBER
|
||||
mobile.Delay = time.Duration(100 * time.Millisecond)
|
||||
mobile.Limits = 3
|
||||
mobile.Limits = 10
|
||||
err := notifier.AddNotifier(mobile)
|
||||
assert.Nil(t, err)
|
||||
assert.Equal(t, "Hunter Long", mobile.Author)
|
||||
|
|
Loading…
Reference in New Issue