forked from Mirrors/go-iap
Added client timeout because http.DefaultClient doesn't have timeout
This commit is contained in:
@@ -90,7 +90,9 @@ func TestNew(t *testing.T) {
|
||||
expected := &Client{
|
||||
ProductionURL: ProductionURL,
|
||||
SandboxURL: SandboxURL,
|
||||
httpCli: http.DefaultClient,
|
||||
httpCli: &http.Client{
|
||||
Timeout: 10 * time.Second,
|
||||
},
|
||||
}
|
||||
|
||||
actual := New()
|
||||
|
||||
Reference in New Issue
Block a user