summary refs log tree commit diff stats
path: root/tests/niminaction/Chapter3/ChatApp
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2018-11-20 11:08:18 +0100
committerAraq <rumpf_a@web.de>2018-11-23 11:58:30 +0100
commit694611627265e4ecb8b0e7623f7d9f82812695e3 (patch)
tree95d9277f7dc414af91d940c53c2f69ab3737cd1b /tests/niminaction/Chapter3/ChatApp
parent161e14829a24ba91c941b5d93cfe1c62867482b0 (diff)
downloadNim-694611627265e4ecb8b0e7623f7d9f82812695e3.tar.gz
fix for nimInAction
Diffstat (limited to 'tests/niminaction/Chapter3/ChatApp')
-rw-r--r--tests/niminaction/Chapter3/ChatApp/src/client.nim4
-rw-r--r--tests/niminaction/Chapter3/ChatApp/src/server.nim6
2 files changed, 9 insertions, 1 deletions
diff --git a/tests/niminaction/Chapter3/ChatApp/src/client.nim b/tests/niminaction/Chapter3/ChatApp/src/client.nim
index 4d139655c..d479ebf43 100644
--- a/tests/niminaction/Chapter3/ChatApp/src/client.nim
+++ b/tests/niminaction/Chapter3/ChatApp/src/client.nim
@@ -1,3 +1,7 @@
+discard """
+action: compile
+"""
+
 import os, threadpool, asyncdispatch, asyncnet
 import protocol
 
diff --git a/tests/niminaction/Chapter3/ChatApp/src/server.nim b/tests/niminaction/Chapter3/ChatApp/src/server.nim
index 8c572aeb0..31da74d16 100644
--- a/tests/niminaction/Chapter3/ChatApp/src/server.nim
+++ b/tests/niminaction/Chapter3/ChatApp/src/server.nim
@@ -1,3 +1,7 @@
+discard """
+action: compile
+"""
+
 import asyncdispatch, asyncnet
 
 type
@@ -81,4 +85,4 @@ when isMainModule:
   echo("Server initialised!")
   # Execute the ``loop`` procedure. The ``waitFor`` procedure will run the
   # asyncdispatch event loop until the ``loop`` procedure finishes executing.
-  waitFor loop(server)
\ No newline at end of file
+  waitFor loop(server)