Skip to content

Commit abfb6b1

Browse files
kysnmtargos
authored andcommitted
test: fixtures in test-http2-respond-file-fd-range
PR-URL: #15878 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent db92df9 commit abfb6b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
const common = require('../common');
77
if (!common.hasCrypto)
88
common.skip('missing crypto');
9+
const fixtures = require('../common/fixtures');
910
const http2 = require('http2');
1011
const assert = require('assert');
11-
const path = require('path');
1212
const fs = require('fs');
1313

1414
const {
1515
HTTP2_HEADER_CONTENT_TYPE,
1616
HTTP2_HEADER_CONTENT_LENGTH
1717
} = http2.constants;
1818

19-
const fname = path.resolve(common.fixturesDir, 'printA.js');
19+
const fname = fixtures.path('printA.js');
2020
const data = fs.readFileSync(fname);
2121
const fd = fs.openSync(fname, 'r');
2222

0 commit comments

Comments
 (0)