diff --git a/notifiers/mobile.go b/notifiers/mobile.go index 6bd74ac2..d0a607d3 100644 --- a/notifiers/mobile.go +++ b/notifiers/mobile.go @@ -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 } diff --git a/notifiers/mobile_test.go b/notifiers/mobile_test.go index c43111c7..88464c7c 100644 --- a/notifiers/mobile_test.go +++ b/notifiers/mobile_test.go @@ -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)