This commit is contained in:
andri lim 2019-01-12 19:58:16 +07:00 committed by zah
parent b9286104e7
commit b4a3273152
1 changed files with 2 additions and 1 deletions

View File

@ -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,