Update tests with newRpcSocketClient

This commit is contained in:
coffeepots 2018-07-12 14:08:43 +01:00
parent 8d3473e75b
commit 6466b7e778
3 changed files with 3 additions and 3 deletions

View File

@ -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))

View File

@ -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()

View File

@ -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]):