diff --git a/tests/testerrors.nim b/tests/testerrors.nim index 7fe4d46..237c824 100644 --- a/tests/testerrors.nim +++ b/tests/testerrors.nim @@ -6,11 +6,11 @@ import unittest, debugclient, ../json_rpc/rpcserver import strformat, chronicles -var server = newRpcSocketServer("localhost", 8547.Port) +var server = newRpcSocketServer("localhost", Port(8545)) var client = newRpcSocketClient() server.start() -waitFor client.connect("localhost", Port(8547)) +waitFor client.connect("localhost", Port(8545)) server.rpc("rpc") do(a: int, b: int): result = %(&"a: {a}, b: {b}") diff --git a/tests/testethcalls.nim b/tests/testethcalls.nim index 93f293a..deb0177 100644 --- a/tests/testethcalls.nim +++ b/tests/testethcalls.nim @@ -7,7 +7,7 @@ from strutils import rsplit template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0] var - server = newRpcSocketServer("localhost", Port(8546)) + server = newRpcSocketServer("localhost", Port(8545)) client = newRpcSocketClient() ## Generate Ethereum server RPCs @@ -49,7 +49,7 @@ proc testSigCalls: Future[seq[string]] = result = all(version, sha3) server.start() -waitFor client.connect("localhost", Port(8546)) +waitFor client.connect("localhost", Port(8545)) suite "Local calls": diff --git a/tests/testserverclient.nim b/tests/testserverclient.nim index e2fed8e..381a71a 100644 --- a/tests/testserverclient.nim +++ b/tests/testserverclient.nim @@ -1,7 +1,7 @@ import unittest, json, chronicles import ../json_rpc/[rpcclient, rpcserver] -var srv = newRpcSocketServer(["localhost:8546"]) +var srv = newRpcSocketServer(["localhost:8545"]) var client = newRpcSocketClient() # Create RPC on server @@ -9,7 +9,7 @@ srv.rpc("myProc") do(input: string, data: array[0..3, int]): result = %("Hello " & input & " data: " & $data) srv.start() -waitFor client.connect("localhost", Port(8546)) +waitFor client.connect("localhost", Port(8545)) # TODO: When an error occurs during a test, stop the server suite "Server/Client RPC":