Skip to content

Commit

Permalink
test: Replace common.fixturesDir with usage of the common.fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
kysnm committed Oct 6, 2017
1 parent 4f339b5 commit 64d3ca8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http2-respond-file-fd-range.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
// Tests the ability to minimally request a byte range with respondWithFD

const common = require('../common');
const fixtures = require('../common/fixtures');
if (!common.hasCrypto)
common.skip('missing crypto');
const http2 = require('http2');
const assert = require('assert');
const path = require('path');
const fs = require('fs');

const {
HTTP2_HEADER_CONTENT_TYPE,
HTTP2_HEADER_CONTENT_LENGTH
} = http2.constants;

const fname = path.resolve(common.fixturesDir, 'printA.js');
const fname = fixtures.path('printA.js');
const data = fs.readFileSync(fname);
const fd = fs.openSync(fname, 'r');

Expand Down

0 comments on commit 64d3ca8

Please sign in to comment.