Skip to content

Commit

Permalink
test: use common/fixtures in fs-symlink test
Browse files Browse the repository at this point in the history
PR-URL: #15830
Reviewed-By: Lance Ball <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
alexeym authored and MylesBorins committed Nov 15, 2017
1 parent df858d7 commit 8a3c8dc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/parallel/test-fs-symlink-dir-junction.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');
const path = require('path');
const fs = require('fs');

// test creating and reading symbolic link
const linkData = path.join(common.fixturesDir, 'cycles/');
const linkData = fixtures.path('cycles/');
const linkPath = path.join(common.tmpDir, 'cycles_link');

common.refreshTmpDir();

console.log(`linkData: ${linkData}`);
console.log(`linkPath: ${linkPath}`);

fs.symlink(linkData, linkPath, 'junction', common.mustCall(function(err) {
if (err) throw err;

Expand Down

0 comments on commit 8a3c8dc

Please sign in to comment.