Add test for issue #4757

This commit is contained in:
Dmitry Polienko
2016-09-13 02:00:37 -07:00
parent d810b4515e
commit a2a5985a2d

View File

@@ -0,0 +1,16 @@
discard """
file: "tasyncsend4754.nim"
output: "Finished"
"""
import asyncdispatch
proc f(): Future[void] {.async.} =
let s = newAsyncNativeSocket()
await s.connect("example.com", 80.Port)
await s.send("123")
echo "Finished"
asyncCheck f()
poll(1000)