Skip to content

Commit

Permalink
test: fixtures in test-net-pipe-connect-errors
Browse files Browse the repository at this point in the history
PR-URL: #15922
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
Eric Freiberg authored and MylesBorins committed Nov 28, 2017
1 parent 244bfb3 commit 4c98e07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-net-pipe-connect-errors.js
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4c98e07

Please sign in to comment.