summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/ctest.lua2
-rwxr-xr-xtest/httptest.lua4
-rwxr-xr-xtest/stest.lua2
3 files changed, 4 insertions, 4 deletions
diff --git a/test/ctest.lua b/test/ctest.lua
index ceebebe..b7d87f5 100755
--- a/test/ctest.lua
+++ b/test/ctest.lua
@@ -22,7 +22,7 @@ print('Entered ' .. arg[0])
local utils = require 'lem.utils'
local io = require 'lem.io'
-local conn = assert(io.tcp_connect('localhost', arg[1] or 8080))
+local conn = assert(io.tcp.connect('localhost', arg[1] or 8080))
for i = 1, 10 do
assert(conn:write('ping\n'))
diff --git a/test/httptest.lua b/test/httptest.lua
index 1e88f28..0dea30c 100755
--- a/test/httptest.lua
+++ b/test/httptest.lua
@@ -27,8 +27,8 @@ local concat = table.concat
local done = false
utils.spawn(function()
- local conn = assert(io.tcp_connect('www.google.dk', 80))
- --local conn = assert(io.tcp_connect('127.0.0.1', 8080))
+ local conn = assert(io.tcp.connect('www.google.dk', 80))
+ --local conn = assert(io.tcp.connect('127.0.0.1', 8080))
print('\nConnected.')
diff --git a/test/stest.lua b/test/stest.lua
index f156ce7..e9499a1 100755
--- a/test/stest.lua
+++ b/test/stest.lua
@@ -22,7 +22,7 @@ print('Entered ' .. arg[0])
local utils = require 'lem.utils'
local io = require 'lem.io'
-local server = assert(io.tcp_listen('*', arg[1] or 8080))
+local server = assert(io.tcp.listen('*', arg[1] or 8080))
--timer(10, function() exit(0) end)
utils.spawn(function()