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 <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ryan Graham <r.m.graham@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Michael Rueppel authored and Matteo Collina committed 2017-10-17 09:37:35 +02:00
1 parent d78086bd8a
commit d60f9b775e
1 file changed
+2 -2
@@ -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);