test: shorten path for bogus socket
authorRich Trott <rtrott@gmail.com>
Wed, 30 Dec 2015 07:09:25 +0000 (23:09 -0800)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
This fixes CI failures for test-net-pipe-connect-errors on Raspberry Pi
devices.

PR-URL: https://github.com/nodejs/node/pull/4478
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: James M Snell <jasnell@gmail.com>
test/parallel/test-net-pipe-connect-errors.js

index dbc7967..8e34101 100644 (file)
@@ -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 {