aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/httptest.lua3
-rw-r--r--test/testclnt.lua4
2 files changed, 4 insertions, 3 deletions
diff --git a/test/httptest.lua b/test/httptest.lua
index 9d9fa25..d3a4dc0 100644
--- a/test/httptest.lua
+++ b/test/httptest.lua
@@ -314,9 +314,10 @@ body = socket.http.get {
314check(body == index) 314check(body == index)
315 315
316io.write("testing HEAD method: ") 316io.write("testing HEAD method: ")
317socket.http.TIMEOUT = 1
317response = socket.http.request { 318response = socket.http.request {
318 method = "HEAD", 319 method = "HEAD",
319 url = "http://www.tecgraf.puc-rio.br/~diego/" 320 url = "http://www.cs.princeton.edu/~diego/"
320} 321}
321check(response and response.headers) 322check(response and response.headers)
322 323
diff --git a/test/testclnt.lua b/test/testclnt.lua
index 6b07dca..3dea831 100644
--- a/test/testclnt.lua
+++ b/test/testclnt.lua
@@ -359,6 +359,7 @@ test_methods(socket.tcp(), {
359 "getsockname", 359 "getsockname",
360 "setoption", 360 "setoption",
361 "settimeout", 361 "settimeout",
362 "shutdown",
362 "close", 363 "close",
363}) 364})
364test_methods(socket.udp(), { 365test_methods(socket.udp(), {
@@ -372,6 +373,7 @@ test_methods(socket.udp(), {
372 "receivefrom", 373 "receivefrom",
373 "setoption", 374 "setoption",
374 "settimeout", 375 "settimeout",
376 "shutdown",
375 "close", 377 "close",
376}) 378})
377 379
@@ -484,6 +486,4 @@ test_blockingtimeoutreceive(800091, 3, 2)
484test_blockingtimeoutreceive(800091, 3, 1) 486test_blockingtimeoutreceive(800091, 3, 1)
485]] 487]]
486 488
487socket.done()
488
489test(string.format("done in %.2fs", socket.time() - start)) 489test(string.format("done in %.2fs", socket.time() - start))