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 <r.m.graham@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • 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.