Skip to content

Commit f30b9ca

Browse files
committed
fix aix
1 parent 2b4839f commit f30b9ca

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎test/parallel/test-net-boundsocket.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,14 +412,15 @@ if (!isLinux) {
412412
// Filesystem bind errors surface synchronously in the constructor. A missing
413413
// parent directory yields EACCES (libuv maps the kernel's ENOENT to EACCES for
414414
// cross-platform parity), and an over-long path yields EINVAL (uv_pipe_bind is
415-
// called with UV_PIPE_NO_TRUNCATE).
415+
// called with UV_PIPE_NO_TRUNCATE). The path must exceed sun_path on every
416+
// platform, which is 1023 bytes on AIX.
416417
if (!common.isWindows) {
417418
assert.throws(
418419
() => new net.BoundSocket({ path: `${common.PIPE}-nope/child.sock` }),
419420
{ code: 'EACCES', syscall: 'bind' });
420421

421422
assert.throws(
422-
() => new net.BoundSocket({ path: `${common.PIPE}-${'x'.repeat(200)}` }),
423+
() => new net.BoundSocket({ path: `${common.PIPE}-${'x'.repeat(2000)}` }),
423424
{ code: 'EINVAL', syscall: 'bind' });
424425
}
425426

0 commit comments

Comments
 (0)