aboutsummaryrefslogtreecommitdiff
path: root/test/testsrvr.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/testsrvr.lua')
-rw-r--r--test/testsrvr.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testsrvr.lua b/test/testsrvr.lua
index 4530014..a11927f 100644
--- a/test/testsrvr.lua
+++ b/test/testsrvr.lua
@@ -8,6 +8,7 @@
8----------------------------------------------------------------------------- 8-----------------------------------------------------------------------------
9-- Read command definitions 9-- Read command definitions
10----------------------------------------------------------------------------- 10-----------------------------------------------------------------------------
11HOST = HOST or "*"
11assert(dofile("testcmd.lua")) 12assert(dofile("testcmd.lua"))
12test_debug_mode() 13test_debug_mode()
13 14
@@ -33,6 +34,7 @@ function execute_command(cmd, par)
33 if cmd == CONNECT then 34 if cmd == CONNECT then
34 print("server: waiting for data connection...") 35 print("server: waiting for data connection...")
35 data = server:accept() 36 data = server:accept()
37 data:timeout(10)
36 if not data then 38 if not data then
37 fail("server: unable to start data connection!") 39 fail("server: unable to start data connection!")
38 else 40 else