From a554f4c84ae2de596db4438fb6434c4637500468 Mon Sep 17 00:00:00 2001 From: Hunter Long Date: Fri, 14 Dec 2018 01:57:36 -0800 Subject: [PATCH] push notification update --- notifiers/mobile.go | 2 +- notifiers/mobile_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)