From 689afee096cb2a63233f8dcc3b7c161014b3c587 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 31 Jan 2020 23:52:40 +0800 Subject: adjust pipe test loop count --- tests/modules/pipe/sched_pipe_pair.lua | 4 ++-- 1 file 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) -- cgit v1.3.1