From 3f5f847ed131799da2e8424bf39acf3be55ad683 Mon Sep 17 00:00:00 2001 From: BradLarson Date: Fri, 6 Oct 2017 12:29:49 -0500 Subject: [PATCH] test: replace common.fixturesDir with fixture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/15940 Reviewed-By: Sam Roberts Reviewed-By: Ruben Bridgewater Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig --- test/parallel/test-http2-respond-file-compat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http2-respond-file-compat.js b/test/parallel/test-http2-respond-file-compat.js index 1932592279..0f6e3199d6 100644 --- a/test/parallel/test-http2-respond-file-compat.js +++ b/test/parallel/test-http2-respond-file-compat.js @@ -4,9 +4,9 @@ const common = require('../common'); if (!common.hasCrypto) common.skip('missing crypto'); const http2 = require('http2'); -const path = require('path'); +const fixtures = require('../common/fixtures'); -const fname = path.resolve(common.fixturesDir, 'elipses.txt'); +const fname = fixtures.path('elipses.txt'); const server = http2.createServer(common.mustCall((request, response) => { response.stream.respondWithFile(fname);