From 07dc2b50e23eb2c7f22da01024fba3f1bb8bde17 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 29 Dec 2015 23:09:25 -0800 Subject: [PATCH] test: shorten path for bogus socket MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: James M Snell --- test/parallel/test-net-pipe-connect-errors.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-net-pipe-connect-errors.js b/test/parallel/test-net-pipe-connect-errors.js index dbc7967fec9e63..8e341015d96b3f 100644 --- a/test/parallel/test-net-pipe-connect-errors.js +++ b/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 {