Skip to content

Commit

Permalink
assert() -> doAssert()
Browse files Browse the repository at this point in the history
  • Loading branch information
stefantalpalaru committed Mar 13, 2019
1 parent 53ed44d commit 159f9b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion json_rpc/clients/socketclient.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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]()
Expand Down
2 changes: 1 addition & 1 deletion tests/debugclient.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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]()
Expand Down

0 comments on commit 159f9b8

Please sign in to comment.