diff options
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 |