Browse Source

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>
v9.x-staging
Michael Rueppel 7 years ago
committed by Matteo Collina
parent
commit
d60f9b775e
  1. 4
      test/parallel/test-http2-respond-file-range.js

4
test/parallel/test-http2-respond-file-range.js

@ -3,9 +3,9 @@
const common = require('../common'); const common = require('../common');
if (!common.hasCrypto) if (!common.hasCrypto)
common.skip('missing crypto'); common.skip('missing crypto');
const fixtures = require('../common/fixtures');
const http2 = require('http2'); const http2 = require('http2');
const assert = require('assert'); const assert = require('assert');
const path = require('path');
const fs = require('fs'); const fs = require('fs');
const { const {
@ -14,7 +14,7 @@ const {
HTTP2_HEADER_LAST_MODIFIED HTTP2_HEADER_LAST_MODIFIED
} = http2.constants; } = http2.constants;
const fname = path.resolve(common.fixturesDir, 'printA.js'); const fname = fixtures.path('printA.js');
const data = fs.readFileSync(fname); const data = fs.readFileSync(fname);
const stat = fs.statSync(fname); const stat = fs.statSync(fname);

Loading…
Cancel
Save