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 8, 2024
1 parent a2f27a9 commit e5eab3a
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 e5eab3a

Please sign in to comment.