Skip to content

Commit b766d27

Browse files
pauljohnberryMylesBorins
authored andcommitted
test: replace fixturesDir with common.fixtures
PR-URL: #15973 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent c47ebe2 commit b766d27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-http2-respond-file-fd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
'use strict';
33

44
const common = require('../common');
5+
const fixtures = require('../common/fixtures');
56
if (!common.hasCrypto)
67
common.skip('missing crypto');
78
const http2 = require('http2');
89
const assert = require('assert');
9-
const path = require('path');
1010
const fs = require('fs');
1111

1212
const {
1313
HTTP2_HEADER_CONTENT_TYPE,
1414
HTTP2_HEADER_CONTENT_LENGTH
1515
} = http2.constants;
1616

17-
const fname = path.resolve(common.fixturesDir, 'elipses.txt');
17+
const fname = fixtures.path('elipses.txt');
1818
const data = fs.readFileSync(fname);
1919
const stat = fs.statSync(fname);
2020
const fd = fs.openSync(fname, 'r');

0 commit comments

Comments
 (0)