Merge pull request #124 from ashhadsheikh/patch-1

increase default timeout for client
This commit is contained in:
Takeshi Yamashita
2020-09-10 07:57:18 +09:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ func New() *Client {
ProductionURL: ProductionURL,
SandboxURL: SandboxURL,
httpCli: &http.Client{
Timeout: 10 * time.Second,
Timeout: 30 * time.Second,
},
}
return client

View File

@@ -96,7 +96,7 @@ func TestNew(t *testing.T) {
ProductionURL: ProductionURL,
SandboxURL: SandboxURL,
httpCli: &http.Client{
Timeout: 10 * time.Second,
Timeout: 30 * time.Second,
},
}