mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 03:41:34 +00:00
Merge pull request #3350 from nspcc-dev/tune-rpc-tests
rpcsrv: close idle client connections in doRPCCallOverHTTP
This commit is contained in:
commit
67d39177d8
1 changed files with 1 additions and 0 deletions
|
@ -3464,6 +3464,7 @@ func doRPCCallOverHTTP(rpcCall string, url string, t *testing.T) []byte {
|
|||
body, err := gio.ReadAll(resp.Body)
|
||||
resp.Body.Close()
|
||||
assert.NoErrorf(t, err, "could not read response from the request: %s", rpcCall)
|
||||
cl.CloseIdleConnections()
|
||||
return bytes.TrimSpace(body)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue