From 09816df58abe1938484bee42a5a9f93bb4f10fbc Mon Sep 17 00:00:00 2001 From: Nicolas Chaulet 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 Reviewed-By: Tobias Nießen Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- 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 c838be03aa..1cfff9888d 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`;