Skip to content

Commit

Permalink
fix test-pipe.lua for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaozg committed Feb 9, 2024
1 parent 1b93688 commit 3c3f7f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-pipe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ return require('lib/tap')(function (test)
if isLinux then
assert(server:bind2('\0' .. pipe_name))
local name = server:getsockname()
assert(#name > #pipe_name + 1 )
assert(#name == #pipe_name + 1 )
assert(name:sub(1, #pipe_name + 1) == '\0' .. pipe_name)
pipe_name = name
else
Expand Down

0 comments on commit 3c3f7f8

Please sign in to comment.