diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-07-01 06:09:29 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-07-01 06:09:29 +0000 |
| commit | 63807d647624df155a81a2b323f370e2c36192f6 (patch) | |
| tree | 28d53540d166cc01eb0a3302e4f0dc5d2cc6c809 /test | |
| parent | 2562738e2db9d7654c48c10247e683215e09b4a5 (diff) | |
| download | luasocket-63807d647624df155a81a2b323f370e2c36192f6.tar.gz luasocket-63807d647624df155a81a2b323f370e2c36192f6.tar.bz2 luasocket-63807d647624df155a81a2b323f370e2c36192f6.zip | |
Added getstats.
Diffstat (limited to 'test')
| -rw-r--r-- | test/httptest.lua | 1 | ||||
| -rw-r--r-- | test/testclnt.lua | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/httptest.lua b/test/httptest.lua index 3a4d461..8f94861 100644 --- a/test/httptest.lua +++ b/test/httptest.lua | |||
| @@ -69,6 +69,7 @@ end | |||
| 69 | io.write("testing request uri correctness: ") | 69 | io.write("testing request uri correctness: ") |
| 70 | local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string" | 70 | local forth = cgiprefix .. "/request-uri?" .. "this+is+the+query+string" |
| 71 | local back, c, h = http.request("http://" .. host .. forth) | 71 | local back, c, h = http.request("http://" .. host .. forth) |
| 72 | print(back, c, h) | ||
| 72 | if not back then fail(c) end | 73 | if not back then fail(c) end |
| 73 | back = url.parse(back) | 74 | back = url.parse(back) |
| 74 | if similar(back.query, "this+is+the+query+string") then print("ok") | 75 | if similar(back.query, "this+is+the+query+string") then print("ok") |
diff --git a/test/testclnt.lua b/test/testclnt.lua index 58a3574..38dc19a 100644 --- a/test/testclnt.lua +++ b/test/testclnt.lua | |||
| @@ -448,6 +448,7 @@ test_methods(socket.tcp(), { | |||
| 448 | "getfd", | 448 | "getfd", |
| 449 | "getpeername", | 449 | "getpeername", |
| 450 | "getsockname", | 450 | "getsockname", |
| 451 | "getstats", | ||
| 451 | "listen", | 452 | "listen", |
| 452 | "receive", | 453 | "receive", |
| 453 | "send", | 454 | "send", |
