Update tests to use rpcStreamClient
This commit is contained in:
parent
ef6041ea6a
commit
79e756bd3c
|
@ -7,7 +7,7 @@ import unittest, debugclient, ../rpcserver
|
|||
import strformat, chronicles
|
||||
|
||||
var server = newRpcStreamServer("localhost", 8547.Port)
|
||||
var client = newRpcClient()
|
||||
var client = newRpcStreamClient()
|
||||
|
||||
server.start()
|
||||
waitFor client.connect("localhost", Port(8547))
|
||||
|
|
|
@ -8,7 +8,7 @@ template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0]
|
|||
|
||||
var
|
||||
server = newRpcStreamServer("localhost", Port(8546))
|
||||
client = newRpcClient()
|
||||
client = newRpcStreamClient()
|
||||
|
||||
## Generate Ethereum server RPCs
|
||||
server.addEthRpcs()
|
||||
|
|
|
@ -2,7 +2,7 @@ import unittest, json, chronicles
|
|||
import ../rpcclient, ../rpchttpservers
|
||||
|
||||
var srv = newRpcHttpServer(["localhost:8545"])
|
||||
var client = newRpcClient()
|
||||
var client = newRpcStreamClient()
|
||||
|
||||
# Create RPC on server
|
||||
srv.rpc("myProc") do(input: string, data: array[0..3, int]):
|
||||
|
|
|
@ -2,7 +2,7 @@ import unittest, json, chronicles
|
|||
import ../rpcclient, ../rpcserver
|
||||
|
||||
var srv = newRpcStreamServer(["localhost:8545"])
|
||||
var client = newRpcClient()
|
||||
var client = newRpcStreamClient()
|
||||
|
||||
# Create RPC on server
|
||||
srv.rpc("myProc") do(input: string, data: array[0..3, int]):
|
||||
|
|
Loading…
Reference in New Issue