From 2016ad30358db46b4761fdd8e4d0d95b9818b7e1 Mon Sep 17 00:00:00 2001 From: Nicolas Chaulet <n.chaulet@gmail.com> Date: Fri, 6 Oct 2017 10:00:17 -0700 Subject: [PATCH] test: use of fixtures in test-pipe-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace usage of common.fixturesDir by using common.fixtures module in test/parallel/test-pipe-head PR-URL: https://github.com/nodejs/node/pull/15868 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> --- test/parallel/test-pipe-head.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-pipe-head.js b/test/parallel/test-pipe-head.js index c838be03aa9a01..1cfff9888d0d7f 100644 --- a/test/parallel/test-pipe-head.js +++ b/test/parallel/test-pipe-head.js @@ -1,12 +1,12 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); const exec = require('child_process').exec; -const join = require('path').join; const nodePath = process.argv[0]; -const script = join(common.fixturesDir, 'print-10-lines.js'); +const script = fixtures.path('print-10-lines.js'); const cmd = `"${nodePath}" "${script}" | head -2`;