Skip to content
This repository was archived by the owner on Aug 31, 2018. It is now read-only.

Commit 881853c

Browse files
Eric Freibergaddaleax
Eric Freiberg
authored andcommitted
test: fixtures in test-net-pipe-connect-errors
PR-URL: nodejs/node#15922 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 772841e commit 881853c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-net-pipe-connect-errors.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
'use strict';
2323
const common = require('../common');
24+
const fixtures = require('../common/fixtures');
2425
const fs = require('fs');
2526
const net = require('net');
26-
const path = require('path');
2727
const assert = require('assert');
2828

2929
// Test if ENOTSOCK is fired when trying to connect to a file which is not
@@ -34,7 +34,7 @@ let emptyTxt;
3434
if (common.isWindows) {
3535
// on Win, common.PIPE will be a named pipe, so we use an existing empty
3636
// file instead
37-
emptyTxt = path.join(common.fixturesDir, 'empty.txt');
37+
emptyTxt = fixtures.path('empty.txt');
3838
} else {
3939
common.refreshTmpDir();
4040
// Keep the file name very short so tht we don't exceed the 108 char limit

0 commit comments

Comments
 (0)