Update tests to use rpcStreamClient

This commit is contained in:
coffeepots 2018-06-22 19:06:03 +01:00
parent ef6041ea6a
commit 79e756bd3c
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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