mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-08 08:33:14 +00:00
fix test
This commit is contained in:
parent
b9286104e7
commit
b4a3273152
@ -60,12 +60,13 @@ const
|
||||
|
||||
proc continuousTest(address: string, port: Port): Future[int] {.async.} =
|
||||
var client = newRpcHttpClient()
|
||||
await client.connect(address, port)
|
||||
result = 0
|
||||
for i in 0..<TestsCount:
|
||||
await client.connect(address, port)
|
||||
var r = await client.call("myProc", %[%"abc", %[1, 2, 3, i]])
|
||||
if r.result.getStr == "Hello abc data: [1, 2, 3, " & $i & "]":
|
||||
result += 1
|
||||
client.transp.close()
|
||||
|
||||
proc customMessage(address: TransportAddress,
|
||||
data: string,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user