From 5bfc4f5e5ae59123d2b2f261c67437216e25450b Mon Sep 17 00:00:00 2001 From: Charlie Duong Date: Fri, 6 Oct 2017 09:43:20 -0700 Subject: [PATCH] test: replace fixtureDir with fixtures module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit replaces the usage of common.fixturesDir with fixtures.path. PR-URL: https://github.com/nodejs/node/pull/15823 Reviewed-By: Ryan Graham Reviewed-By: Benjamin Gruenbaum Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Luigi Pinca --- test/parallel/test-http2-respond-file-push.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http2-respond-file-push.js b/test/parallel/test-http2-respond-file-push.js index b16a9e1c600d2b..abcd72d598be54 100644 --- a/test/parallel/test-http2-respond-file-push.js +++ b/test/parallel/test-http2-respond-file-push.js @@ -4,9 +4,11 @@ const common = require('../common'); if (!common.hasCrypto) common.skip('missing crypto'); + +const fixtures = require('../common/fixtures'); + const http2 = require('http2'); const assert = require('assert'); -const path = require('path'); const fs = require('fs'); const { @@ -15,7 +17,7 @@ const { HTTP2_HEADER_LAST_MODIFIED } = http2.constants; -const fname = path.resolve(common.fixturesDir, 'elipses.txt'); +const fname = fixtures.path('elipses.txt'); const data = fs.readFileSync(fname); const stat = fs.statSync(fname); const fd = fs.openSync(fname, 'r');