Skip to content

Commit 4c98e07

Browse files
Eric FreibergMylesBorins
Eric Freiberg
authored andcommitted
test: fixtures in test-net-pipe-connect-errors
PR-URL: #15922 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 244bfb3 commit 4c98e07

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
@@ -1,8 +1,8 @@
11
'use strict';
22
const common = require('../common');
3+
const fixtures = require('../common/fixtures');
34
const fs = require('fs');
45
const net = require('net');
5-
const path = require('path');
66
const assert = require('assert');
77

88
// Test if ENOTSOCK is fired when trying to connect to a file which is not
@@ -13,7 +13,7 @@ let emptyTxt;
1313
if (common.isWindows) {
1414
// on Win, common.PIPE will be a named pipe, so we use an existing empty
1515
// file instead
16-
emptyTxt = path.join(common.fixturesDir, 'empty.txt');
16+
emptyTxt = fixtures.path('empty.txt');
1717
} else {
1818
common.refreshTmpDir();
1919
// Keep the file name very short so tht we don't exceed the 108 char limit

0 commit comments

Comments
 (0)