Add test for issue #4757
This commit is contained in:
parent
d810b4515e
commit
a2a5985a2d
1 changed files with 16 additions and 0 deletions
16
tests/async/tasyncsend4757.nim
Normal file
16
tests/async/tasyncsend4757.nim
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue