Fixes async tests.

This commit is contained in:
Dominik Picheta 2014-09-09 01:17:07 +01:00
commit 56f11e2c95
3 changed files with 10 additions and 10 deletions

View file

@ -1,15 +1,15 @@
discard """
file: "tasyncexceptions.nim"
exitcode: 1
outputsub: "Error: unhandled exception: foobar [E_Base]"
outputsub: "Error: unhandled exception: foobar [Exception]"
"""
import asyncdispatch
proc accept(): PFuture[int] {.async.} =
proc accept(): Future[int] {.async.} =
await sleepAsync(100)
result = 4
proc recvLine(fd: int): PFuture[string] {.async.} =
proc recvLine(fd: int): Future[string] {.async.} =
await sleepAsync(100)
return "get"