Skip to content

Commit 07dc2b5

Browse files
TrottMyles Borins
authored andcommitted
test: shorten path for bogus socket
This fixes CI failures for test-net-pipe-connect-errors on Raspberry Pi devices. PR-URL: #4478 Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 0100639 commit 07dc2b5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/parallel/test-net-pipe-connect-errors.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ if (common.isWindows) {
1919
// file instead
2020
emptyTxt = path.join(common.fixturesDir, 'empty.txt');
2121
} else {
22-
// use common.PIPE to ensure we stay within POSIX socket path length
23-
// restrictions, even on CI
2422
common.refreshTmpDir();
25-
emptyTxt = common.PIPE + '.txt';
23+
// Keep the file name very short so tht we don't exceed the 108 char limit
24+
// on CI for a POSIX socket. Even though this isn't actually a socket file,
25+
// the error will be different from the one we are expecting if we exceed the
26+
// limit.
27+
emptyTxt = common.tmpDir + '0.txt';
2628

2729
function cleanup() {
2830
try {

0 commit comments

Comments
 (0)