summaryrefslogtreecommitdiff
path: root/tests/modules/socket
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2020-01-19 16:06:12 +0800
committerOpportunity <[email protected]>2020-01-19 16:06:12 +0800
commit3a1afba247944db42a01af2e585b5381758e4e63 (patch)
tree1502d7863bd318fbbede70758fd6e924210fd144 /tests/modules/socket
parentf415da828b1fb3b24b47782f516c85e4fb3bbb31 (diff)
fix test
Diffstat (limited to 'tests/modules/socket')
-rw-r--r--tests/modules/socket/sched_tcp/file_client.lua1
-rw-r--r--tests/modules/socket/tcp/file_client.lua1
-rw-r--r--tests/modules/socket/unix_tcp/file_client.lua1
3 files changed, 3 insertions, 0 deletions
diff --git a/tests/modules/socket/sched_tcp/file_client.lua b/tests/modules/socket/sched_tcp/file_client.lua
index 522d05353..311a80eab 100644
--- a/tests/modules/socket/sched_tcp/file_client.lua
+++ b/tests/modules/socket/sched_tcp/file_client.lua
@@ -1,5 +1,6 @@
import("core.base.socket")
import("core.base.scheduler")
+import("core.base.bytes")
function _session(addr, port)
print("connect %s:%d ..", addr, port)
diff --git a/tests/modules/socket/tcp/file_client.lua b/tests/modules/socket/tcp/file_client.lua
index 42532f5fe..33fde9d09 100644
--- a/tests/modules/socket/tcp/file_client.lua
+++ b/tests/modules/socket/tcp/file_client.lua
@@ -1,4 +1,5 @@
import("core.base.socket")
+import("core.base.bytes")
function main()
local addr = "127.0.0.1"
diff --git a/tests/modules/socket/unix_tcp/file_client.lua b/tests/modules/socket/unix_tcp/file_client.lua
index 3f870ae3f..3eadb211e 100644
--- a/tests/modules/socket/unix_tcp/file_client.lua
+++ b/tests/modules/socket/unix_tcp/file_client.lua
@@ -1,4 +1,5 @@
import("core.base.socket")
+import("core.base.bytes")
function main(addr)
addr = addr or path.join(os.tmpdir(), "file.socket")