diff options
author | Eric Freiberg <eric.freiberg@pointsource.com> | 2017-10-06 10:11:05 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-10-13 12:47:17 -0700 |
commit | 584f0376121344e5d6ab565dced19873990b23e7 (patch) | |
tree | 8a9ab3b15355c07f400db8245339cca943a8f2bf /test/parallel/test-net-pipe-connect-errors.js | |
parent | ab6eed8818c97e7bb07a77a55f4fd6585b397b65 (diff) | |
download | android-node-v8-584f0376121344e5d6ab565dced19873990b23e7.tar.gz android-node-v8-584f0376121344e5d6ab565dced19873990b23e7.tar.bz2 android-node-v8-584f0376121344e5d6ab565dced19873990b23e7.zip |
test: fixtures in test-net-pipe-connect-errors
PR-URL: https://github.com/nodejs/node/pull/15922
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test/parallel/test-net-pipe-connect-errors.js')
-rw-r--r-- | test/parallel/test-net-pipe-connect-errors.js | 4 |
1 files 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 5ad77b7209..91c4f7efd0 100644 --- a/test/parallel/test-net-pipe-connect-errors.js +++ b/test/parallel/test-net-pipe-connect-errors.js @@ -21,9 +21,9 @@ '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 @@ -34,7 +34,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 |