Merge pull request #3350 from nspcc-dev/tune-rpc-tests

rpcsrv: close idle client connections in doRPCCallOverHTTP
This commit is contained in:
Anna Shaleva 2024-03-14 10:52:35 +03:00 committed by GitHub
commit 67d39177d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}