summaryrefslogtreecommitdiff
path: root/tests/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2020-01-31 23:52:40 +0800
committerruki <[email protected]>2020-01-31 17:16:03 +0800
commit689afee096cb2a63233f8dcc3b7c161014b3c587 (patch)
tree5ebe0d1f1f841e184ede0690dc3356f5ed5bf67a /tests/modules
parentc36bc1c2eb92bfd9090ad3e6ed382aa40f34e8c9 (diff)
adjust pipe test loop count
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/pipe/sched_pipe_pair.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modules/pipe/sched_pipe_pair.lua b/tests/modules/pipe/sched_pipe_pair.lua
index 18b69d9d4..ddfe445e3 100644
--- a/tests/modules/pipe/sched_pipe_pair.lua
+++ b/tests/modules/pipe/sched_pipe_pair.lua
@@ -4,7 +4,7 @@ import("core.base.scheduler")
function _session_read(id, pipefile)
print("%s/%d: read ..", pipefile, id)
local result = nil
- for i = 1, 100000 do
+ for i = 1, 10000 do
local read, data = pipefile:read(12, {block = true})
if read > 0 and data then
result = data:str()
@@ -16,7 +16,7 @@ end
function _session_write(id, pipefile)
print("%s/%d: write ..", pipefile, id)
- for i = 1, 100000 do
+ for i = 1, 10000 do
pipefile:write("hello xmake!", {block = true})
end
print("%s/%d: write ok", pipefile, id)