diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/httptest.lua | 3 | ||||
| -rw-r--r-- | test/testclnt.lua | 4 |
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 { | |||
| 314 | check(body == index) | 314 | check(body == index) |
| 315 | 315 | ||
| 316 | io.write("testing HEAD method: ") | 316 | io.write("testing HEAD method: ") |
| 317 | socket.http.TIMEOUT = 1 | ||
| 317 | response = socket.http.request { | 318 | response = 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 | } |
| 321 | check(response and response.headers) | 322 | check(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 | }) |
| 364 | test_methods(socket.udp(), { | 365 | test_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) | |||
| 484 | test_blockingtimeoutreceive(800091, 3, 1) | 486 | test_blockingtimeoutreceive(800091, 3, 1) |
| 485 | ]] | 487 | ]] |
| 486 | 488 | ||
| 487 | socket.done() | ||
| 488 | |||
| 489 | test(string.format("done in %.2fs", socket.time() - start)) | 489 | test(string.format("done in %.2fs", socket.time() - start)) |
