push notification update

pull/116/head
Hunter Long 2018-12-14 01:57:36 -08:00
parent 220080e323
commit a554f4c84a
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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)