summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--tests/async/tasyncsend4757.nim16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/async/tasyncsend4757.nim b/tests/async/tasyncsend4757.nim
new file mode 100644
index 000000000..2ae4a6151
--- /dev/null
+++ b/tests/async/tasyncsend4757.nim
@@ -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)