diff --git a/test/parallel/test-pipe-head.js b/test/parallel/test-pipe-head.js index c838be03aa9..1cfff9888d0 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`;