summaryrefslogtreecommitdiff
path: root/tests/modules/socket
diff options
context:
space:
mode:
authorruki <[email protected]>2020-01-19 21:43:08 +0800
committerGitHub <[email protected]>2020-01-19 21:43:08 +0800
commit382488036184236e17be24ede9cca18ae8af32c5 (patch)
treec9ed704cb7ddc3cc95d5f5833086124a4cbf3759 /tests/modules/socket
parent7fa954bf793944bdf42175a372277fcd386d62af (diff)
parentd0b39e229426a336f71a0cc24f6319a47e2ce975 (diff)
Merge pull request #669 from OpportunityLiu/tab-complete
Improve tab complete
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")