From 6466b7e77817a6aa3a11aeae5d7c8ec98c289211 Mon Sep 17 00:00:00 2001 From: coffeepots Date: Thu, 12 Jul 2018 14:08:43 +0100 Subject: [PATCH] Update tests with newRpcSocketClient --- tests/testerrors.nim | 2 +- tests/testethcalls.nim | 2 +- tests/testserverclient.nim | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testerrors.nim b/tests/testerrors.nim index 03afad6..2ab2b9e 100644 --- a/tests/testerrors.nim +++ b/tests/testerrors.nim @@ -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)) diff --git a/tests/testethcalls.nim b/tests/testethcalls.nim index 6be998d..7717783 100644 --- a/tests/testethcalls.nim +++ b/tests/testethcalls.nim @@ -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() diff --git a/tests/testserverclient.nim b/tests/testserverclient.nim index 23f5ba8..6e4b008 100644 --- a/tests/testserverclient.nim +++ b/tests/testserverclient.nim @@ -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]):