Pass http pool params via config (#703)

This commit is contained in:
KirillPamPam
2025-08-14 12:52:52 +04:00
committed by GitHub
parent 4e80af7a0c
commit 5ef7f8d414
8 changed files with 39 additions and 14 deletions

View File

@@ -51,7 +51,7 @@ class JsonRpcHttpReaderSpec extends Specification {
def "Make a request"() {
setup:
JsonRpcHttpReader client = new JsonRpcHttpReader("localhost:${port}", metrics,null, null)
JsonRpcHttpReader client = new JsonRpcHttpReader("localhost:${port}", 50, 50, metrics,null, null)
def resp = '{' +
' "jsonrpc": "2.0",' +
' "result": "0x98de45",' +
@@ -72,7 +72,7 @@ class JsonRpcHttpReaderSpec extends Specification {
def "Produces RPC Exception on error status code"() {
setup:
def client = new JsonRpcHttpReader("localhost:${port}", metrics, null, null)
def client = new JsonRpcHttpReader("localhost:${port}", 50, 50, metrics, null, null)
mockServer.when(
HttpRequest.request()
@@ -96,7 +96,7 @@ class JsonRpcHttpReaderSpec extends Specification {
def "Tries to extract message if HTTP error if it still contains a JSON RPC message"() {
setup:
def client = new JsonRpcHttpReader("localhost:${port}", metrics, null, null)
def client = new JsonRpcHttpReader("localhost:${port}", 50, 50, metrics, null, null)
mockServer.when(
HttpRequest.request()