make tests green again

This commit is contained in:
Andreas Rumpf 2016-08-23 10:16:52 +02:00
commit bbfe28ec5c

View file

@ -129,10 +129,10 @@ proc ftpClient*(address: string, port = Port(21),
result.csock = socket() result.csock = socket()
if result.csock == invalidSocket: raiseOSError(osLastError()) if result.csock == invalidSocket: raiseOSError(osLastError())
template blockingOperation(sock: Socket, body: stmt) {.immediate.} = template blockingOperation(sock: Socket, body: untyped) =
body body
template blockingOperation(sock: asyncio.AsyncSocket, body: stmt) {.immediate.} = template blockingOperation(sock: asyncio.AsyncSocket, body: untyped) =
sock.setBlocking(true) sock.setBlocking(true)
body body
sock.setBlocking(false) sock.setBlocking(false)