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 <lball@redhat.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
alexeym authored and MylesBorins committed Nov 28, 2017
1 parent 04d5835 commit c252d87
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 c252d87

Please sign in to comment.