Skip to content

Commit

Permalink
test: http2-respond-file-range to use fixtures
Browse files Browse the repository at this point in the history
Changed test-http2-respond-file-range to use fixtures.path directly
instead of passing through the common module.

PR-URL: nodejs#15852
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ryan Graham <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
michirue authored and mcollina committed Oct 17, 2017
1 parent d78086b commit d60f9b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http2-respond-file-range.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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);

Expand Down

0 comments on commit d60f9b7

Please sign in to comment.