aboutsummaryrefslogtreecommitdiff
path: root/tests/net.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/net.lua')
-rw-r--r--tests/net.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/net.lua b/tests/net.lua
index e9f041c..e7a03a1 100644
--- a/tests/net.lua
+++ b/tests/net.lua
@@ -17,6 +17,11 @@ llib.io.pprint(llib.net.listen(
--res:send("hi");
--res.Code = 201
--sleep(1)
+ require "llib"
+ llib.io.pprint(_G)
+ local sec = tonumber(os.clock() + 5);
+ while (os.clock() < sec) do
+ end
res:send("<h2>hello world</h2>")
end))
@@ -28,4 +33,4 @@ llib.io.pprint(llib.net.listen(
end,
8080
-)) \ No newline at end of file
+))