coder / hat

HTTP API testing for Go
MIT License
36 stars 3 forks source link

use http client with timeout #7

Closed nhooyr closed 6 years ago

nhooyr commented 6 years ago

https://github.com/codercom/hat/blob/51b4351671193d4c595303ca568ea9dd5e439592/hat.go#L25

So instead of the default client, we should use a client with like a 5 second timeout.