Skip to content

Commit

Permalink
test: replace fixtureDir with fixtures module
Browse files Browse the repository at this point in the history
This commit replaces the usage of common.fixturesDir with
fixtures.path.

PR-URL: #15823
Reviewed-By: Ryan Graham <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
ctdio authored and MylesBorins committed Oct 11, 2017
1 parent 66a2c71 commit 5bfc4f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/parallel/test-http2-respond-file-push.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
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 @@ -15,7 +17,7 @@ const {
HTTP2_HEADER_LAST_MODIFIED
} = http2.constants;

const fname = path.resolve(common.fixturesDir, 'elipses.txt');
const fname = fixtures.path('elipses.txt');
const data = fs.readFileSync(fname);
const stat = fs.statSync(fname);
const fd = fs.openSync(fname, 'r');
Expand Down

0 comments on commit 5bfc4f5

Please sign in to comment.