From d60f9b775e0aee375675e50a58253ba946411910 Mon Sep 17 00:00:00 2001 From: Michael Rueppel Date: Fri, 6 Oct 2017 09:34:46 -0700 Subject: [PATCH] test: http2-respond-file-range to use fixtures Changed test-http2-respond-file-range to use fixtures.path directly instead of passing through the common module. PR-URL: https://github.com/nodejs/node/pull/15852 Reviewed-By: Matteo Collina Reviewed-By: James M Snell Reviewed-By: Ryan Graham Reviewed-By: Luigi Pinca --- test/parallel/test-http2-respond-file-range.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http2-respond-file-range.js b/test/parallel/test-http2-respond-file-range.js index 92dd8491ec..a5995cbba7 100644 --- a/test/parallel/test-http2-respond-file-range.js +++ b/test/parallel/test-http2-respond-file-range.js @@ -3,9 +3,9 @@ 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 { @@ -14,7 +14,7 @@ const { HTTP2_HEADER_LAST_MODIFIED } = http2.constants; -const fname = path.resolve(common.fixturesDir, 'printA.js'); +const fname = fixtures.path('printA.js'); const data = fs.readFileSync(fname); const stat = fs.statSync(fname);