Pass http pool params via config (#703)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user