Update tests to use streamserver

This commit is contained in:
coffeepots 2018-06-14 16:55:10 +01:00
parent 7486a542ac
commit bb07650f33
4 changed files with 8 additions and 8 deletions

View File

@ -3,10 +3,10 @@
allow unchecked and unformatted calls.
]#
import unittest, debugclient, ../rpcserver
import unittest, debugclient, ../rpcstreamservers
import strformat, chronicles
var server = newRpcServer("localhost", 8547.Port)
var server = newRpcStreamServer("localhost", 8547.Port)
var client = newRpcClient()
server.start()

View File

@ -1,5 +1,5 @@
import unittest, json, tables
import ../rpcclient, ../rpcserver
import ../rpcclient, ../rpcstreamservers
import stint, ethtypes, ethprocs, stintjson
from os import getCurrentDir, DirSep
@ -7,7 +7,7 @@ from strutils import rsplit
template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0]
var
server = newRpcServer("localhost", Port(8546))
server = newRpcStreamServer("localhost", Port(8546))
client = newRpcClient()
## Generate Ethereum server RPCs

View File

@ -1,5 +1,5 @@
import unittest, json, tables
import ../rpcserver
import ../rpcstreamservers
type
# some nested types to check object parsing
@ -27,7 +27,7 @@ let
},
"c": %1.23}
var s = newRpcServer(["localhost:8545"])
var s = newRpcStreamServer(["localhost:8545"])
# RPC definitions

View File

@ -1,7 +1,7 @@
import unittest, json
import ../rpcclient, ../rpcserver
import ../rpcclient, ../rpcstreamservers
var srv = newRpcServer(["localhost:8545"])
var srv = newRpcStreamServer(["localhost:8545"])
var client = newRpcClient()
# Create RPC on server