Test contextual location and add first integration test

This commit is contained in:
Jean-Baptiste Pinalie
2019-05-27 21:54:44 +02:00
parent 4b7e5a67c7
commit a63792e92f
7 changed files with 152 additions and 9 deletions

View File

@@ -90,7 +90,7 @@ func (c *Client) NewRequest(method, url string, opts ...Opt) (*http.Request, err
return req, nil
}
// Do sends an API reauest and stores the JSON decoded value into v.
// Do sends an API request and stores the JSON decoded value into v.
func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) error {
resp, err := c.client.Do(req.WithContext(ctx))
if err != nil {