diff options
Diffstat (limited to 'tests/net.lua')
| -rw-r--r-- | tests/net.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/net.lua b/tests/net.lua index d366e9b..b5052a9 100644 --- a/tests/net.lua +++ b/tests/net.lua @@ -16,8 +16,11 @@ llib.io.pprint(llib.net.listen( --print(res.send)
--res:send("hi");
--res.Code = 201
- sleep(1)
- res:send("<h2>hello world</h2>")
+ --sleep(1)
+ local sec = tonumber(os.clock() + 1);
+ while (os.clock() < sec) do
+ end
+ --res:send("<h2>hello world</h2>")
end))
llib.io.pprint(server:GET("/test", function(res, req)
|
