Increase test http client timeout

The timeout was increased to allow additional time for RBF to process
a lot of individual `Set()` commands in `TestMain_RecalculateHashes`.
This commit is contained in:
Ben Johnson 2020-10-02 09:53:05 -06:00
parent 3852ac79c4
commit cf208cfaa3

View file

@ -302,7 +302,7 @@ func Do(t *testing.T, method, urlStr string, body string) *httpResponse {
// set a timeout instead of allowing gohttp.Defaultclient to
// potentially hang forever.
hc := &gohttp.Client{
Timeout: time.Second * 10,
Timeout: time.Second * 30,
}
resp, err := hc.Do(req)