summaryrefslogtreecommitdiff
path: root/tests/modules/pipe/pipe_pair.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-04-15 00:45:16 +0800
committerruki <[email protected]>2022-04-15 00:45:16 +0800
commit55f541667ccd31e67e61d7eeeeff412552336903 (patch)
tree63397ffb88713b8ee28522305c9cc8386b86246e /tests/modules/pipe/pipe_pair.lua
parenta61b2aa25af04eb75c6628fbb4f867c9a82ae72a (diff)
improve pipe mode
Diffstat (limited to 'tests/modules/pipe/pipe_pair.lua')
-rw-r--r--tests/modules/pipe/pipe_pair.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modules/pipe/pipe_pair.lua b/tests/modules/pipe/pipe_pair.lua
index f6b2cb5b1..da38f81ff 100644
--- a/tests/modules/pipe/pipe_pair.lua
+++ b/tests/modules/pipe/pipe_pair.lua
@@ -3,7 +3,7 @@ import("core.base.bytes")
function main()
local buff = bytes(8192)
- local rpipe, wpipe = pipe.openpair(4096)
+ local rpipe, wpipe = pipe.openpair()
wpipe:write("hello xmake!", {block = true})
local read, data = rpipe:read(buff, 13)
if read > 0 and data then