From 315fba8bfdcd69fbb173fc1e079111bea533c7f0 Mon Sep 17 00:00:00 2001 From: Klemen Kogovsek Date: Mon, 6 Nov 2017 15:05:59 +0000 Subject: [PATCH] test: used fixturesDir from fixtures modules In test-fs-realpath-on-substed-drive, require common/fixtures module and swapped the location of fixturesDir from common to fixtures module. PR-URL: https://github.com/nodejs/node/pull/16813 Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Gireesh Punathil --- test/parallel/test-fs-realpath-on-substed-drive.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-fs-realpath-on-substed-drive.js b/test/parallel/test-fs-realpath-on-substed-drive.js index a3d38d9f279707..4f4181a4aee1be 100644 --- a/test/parallel/test-fs-realpath-on-substed-drive.js +++ b/test/parallel/test-fs-realpath-on-substed-drive.js @@ -4,6 +4,8 @@ const common = require('../common'); if (!common.isWindows) common.skip('Test for Windows only'); +const fixtures = require('../common/fixtures'); + const assert = require('assert'); const fs = require('fs'); const spawnSync = require('child_process').spawnSync; @@ -16,7 +18,7 @@ let drive; let i; for (i = 0; i < driveLetters.length; ++i) { drive = `${driveLetters[i]}:`; - result = spawnSync('subst', [drive, common.fixturesDir]); + result = spawnSync('subst', [drive, fixtures.fixturesDir]); if (result.status === 0) break; }