Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d016cdc

Browse filesBrowse files
Trottaddaleax
authored andcommitted
test: fix test-cluster-net-listen-relative-path.js to run in /
test-cluster-net-listen-relative-path fails if run from the root directory on POSIX because the socket filename isn't quite long enough. Increase it by 2 so that the path length always exceeds 100 characters. PR-URL: #34820 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
1 parent cc98103 commit d016cdc
Copy full SHA for d016cdc

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-cluster-net-listen-relative-path.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-cluster-net-listen-relative-path.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const tmpdir = require('../common/tmpdir');
1717

1818
// Choose a socket name such that the absolute path would exceed 100 bytes.
1919
const socketDir = './unix-socket-dir';
20-
const socketName = 'A'.repeat(100 - socketDir.length - 1);
20+
const socketName = 'A'.repeat(101 - socketDir.length);
2121

2222
// Make sure we're not in a weird environment.
2323
assert.ok(path.resolve(socketDir, socketName).length > 100,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.