Fix broken async tests.

This commit is contained in:
Dominik Picheta
2014-07-13 11:02:34 +01:00
parent 374706b1c3
commit cdcdab49b7
5 changed files with 7 additions and 7 deletions

View File

@@ -213,5 +213,5 @@ when isMainModule:
"Content-type": "text/plain; charset=utf-8"}
await req.respond(Http200, "Hello World", headers.newStringTable())
server.serve(TPort(5555), cb)
asyncCheck server.serve(TPort(5555), cb)
runForever()

View File

@@ -271,7 +271,7 @@ when isMainModule:
break
else:
echo("Got line: ", line)
main()
asyncCheck main()
elif test == LowClient:
var sock = newAsyncSocket()
var f = connect(sock, "irc.freenode.net", TPort(6667))