diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-21 06:07:58 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-21 06:07:58 +0000 |
commit | bce1cb30d856d167e167c4c2997f9bebe03a612c (patch) | |
tree | 8e684b912cdc9d27c5aebf593107487c94866438 /test/testclnt.lua | |
parent | f7579db9e830ef41f422a280d26c9077f48728e5 (diff) | |
download | luasocket-bce1cb30d856d167e167c4c2997f9bebe03a612c.tar.gz luasocket-bce1cb30d856d167e167c4c2997f9bebe03a612c.tar.bz2 luasocket-bce1cb30d856d167e167c4c2997f9bebe03a612c.zip |
More adjustments/bugfixes.
Diffstat (limited to 'test/testclnt.lua')
-rw-r--r-- | test/testclnt.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testclnt.lua b/test/testclnt.lua index 1b20ad1..9aa07fe 100644 --- a/test/testclnt.lua +++ b/test/testclnt.lua | |||
@@ -1,4 +1,4 @@ | |||
1 | socket = require"socket" | 1 | local socket = require"socket" |
2 | 2 | ||
3 | host = host or "localhost" | 3 | host = host or "localhost" |
4 | port = port or "8080" | 4 | port = port or "8080" |
@@ -418,7 +418,7 @@ function connect_errors() | |||
418 | assert(not c and e == "connection refused", e) | 418 | assert(not c and e == "connection refused", e) |
419 | print("ok") | 419 | print("ok") |
420 | io.stderr:write("host not found: ") | 420 | io.stderr:write("host not found: ") |
421 | local c, e = socket.connect("not.exist.com", 1); | 421 | local c, e = socket.connect("host.is.invalid", 1); |
422 | assert(not c and e == "host not found", e) | 422 | assert(not c and e == "host not found", e) |
423 | print("ok") | 423 | print("ok") |
424 | end | 424 | end |