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