From cb6856d274a182c9c29a79a8dbfd82cfd8364590 Mon Sep 17 00:00:00 2001 From: ashhadsheikh Date: Fri, 21 Aug 2020 14:17:29 +0500 Subject: [PATCH 1/2] increase default timeout for client Apple servers sometimes takes more than the default time causing client timeouts, increase the default timeout to cater increases response times. --- appstore/validator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appstore/validator.go b/appstore/validator.go index 698506f..f504585 100644 --- a/appstore/validator.go +++ b/appstore/validator.go @@ -91,7 +91,7 @@ func New() *Client { ProductionURL: ProductionURL, SandboxURL: SandboxURL, httpCli: &http.Client{ - Timeout: 10 * time.Second, + Timeout: 30 * time.Second, }, } return client From eb5fd1fd67ab22a7ac37cd6c442d128c2c6966f5 Mon Sep 17 00:00:00 2001 From: ashhadsheikh Date: Fri, 21 Aug 2020 14:26:55 +0500 Subject: [PATCH 2/2] change test cases --- appstore/validator_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appstore/validator_test.go b/appstore/validator_test.go index 51c6a46..4fb71be 100644 --- a/appstore/validator_test.go +++ b/appstore/validator_test.go @@ -96,7 +96,7 @@ func TestNew(t *testing.T) { ProductionURL: ProductionURL, SandboxURL: SandboxURL, httpCli: &http.Client{ - Timeout: 10 * time.Second, + Timeout: 30 * time.Second, }, }