Skip to content
Permalink
Browse files

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>
  • Loading branch information...
Trott authored and MylesBorins committed Dec 30, 2015
1 parent 0100639 commit 07dc2b50e23eb2c7f22da01024fba3f1bb8bde17
Showing with 5 additions and 3 deletions.
  1. +5 −3 test/parallel/test-net-pipe-connect-errors.js
@@ -19,10 +19,12 @@ if (common.isWindows) {
// file instead
emptyTxt = path.join(common.fixturesDir, 'empty.txt');
} else {
// use common.PIPE to ensure we stay within POSIX socket path length
// restrictions, even on CI
common.refreshTmpDir();
emptyTxt = common.PIPE + '.txt';
// Keep the file name very short so tht we don't exceed the 108 char limit
// on CI for a POSIX socket. Even though this isn't actually a socket file,
// the error will be different from the one we are expecting if we exceed the
// limit.
emptyTxt = common.tmpDir + '0.txt';

function cleanup() {
try {

0 comments on commit 07dc2b5

Please sign in to comment.
You can’t perform that action at this time.