diff --git a/json_rpc/clients/socketclient.nim b/json_rpc/clients/socketclient.nim index 86bdb5f..d9cd7df 100644 --- a/json_rpc/clients/socketclient.nim +++ b/json_rpc/clients/socketclient.nim @@ -22,7 +22,7 @@ proc call*(self: RpcSocketClient, name: string, "Transport is not initialised (missing a call to connect?)") let res = await self.transport.write(value) # TODO: Add actions when not full packet was send, e.g. disconnect peer. - assert(res == len(value)) + doAssert(res == len(value)) # completed by processMessage. var newFut = newFuture[Response]() diff --git a/tests/debugclient.nim b/tests/debugclient.nim index 15c5f90..6301f88 100644 --- a/tests/debugclient.nim +++ b/tests/debugclient.nim @@ -10,7 +10,7 @@ proc rawCall*(self: RpcClient, name: string, var s = msg & "\c\l" let res = await self.transport.write(s) - assert res == len(s) + doAssert res == len(s) # completed by processMessage. var newFut = newFuture[Response]()