Browse Source

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>
v9.x-staging
Eric Freiberg 7 years ago
committed by James M Snell
parent
commit
584f037612
  1. 4
      test/parallel/test-net-pipe-connect-errors.js

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

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

Loading…
Cancel
Save