mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-10 01:23:11 +00:00
Update tests to use streamserver
This commit is contained in:
parent
7486a542ac
commit
bb07650f33
@ -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()
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user