From 4c98e07702249e4a20447627d65246d6de428281 Mon Sep 17 00:00:00 2001 From: Eric Freiberg Date: Fri, 6 Oct 2017 10:11:05 -0700 Subject: [PATCH] test: fixtures in test-net-pipe-connect-errors PR-URL: https://github.com/nodejs/node/pull/15922 Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil Reviewed-By: Luigi Pinca --- test/parallel/test-net-pipe-connect-errors.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-net-pipe-connect-errors.js b/test/parallel/test-net-pipe-connect-errors.js index 25e9fa3d519fb7..1bb56c62c93ee9 100644 --- a/test/parallel/test-net-pipe-connect-errors.js +++ b/test/parallel/test-net-pipe-connect-errors.js @@ -1,8 +1,8 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); const fs = require('fs'); const net = require('net'); -const path = require('path'); const assert = require('assert'); // Test if ENOTSOCK is fired when trying to connect to a file which is not @@ -13,7 +13,7 @@ let emptyTxt; if (common.isWindows) { // on Win, common.PIPE will be a named pipe, so we use an existing empty // file instead - emptyTxt = path.join(common.fixturesDir, 'empty.txt'); + emptyTxt = fixtures.path('empty.txt'); } else { common.refreshTmpDir(); // Keep the file name very short so tht we don't exceed the 108 char limit