Merge pull request #124 from ashhadsheikh/patch-1
increase default timeout for client
This commit is contained in:
@@ -91,7 +91,7 @@ func New() *Client {
|
||||
ProductionURL: ProductionURL,
|
||||
SandboxURL: SandboxURL,
|
||||
httpCli: &http.Client{
|
||||
Timeout: 10 * time.Second,
|
||||
Timeout: 30 * time.Second,
|
||||
},
|
||||
}
|
||||
return client
|
||||
|
||||
@@ -96,7 +96,7 @@ func TestNew(t *testing.T) {
|
||||
ProductionURL: ProductionURL,
|
||||
SandboxURL: SandboxURL,
|
||||
httpCli: &http.Client{
|
||||
Timeout: 10 * time.Second,
|
||||
Timeout: 30 * time.Second,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user