diff --git a/pkg/services/rpcsrv/server_test.go b/pkg/services/rpcsrv/server_test.go index 23a6f52ec..c0b0fe151 100644 --- a/pkg/services/rpcsrv/server_test.go +++ b/pkg/services/rpcsrv/server_test.go @@ -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) }