We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c47ebe2 commit b766d27Copy full SHA for b766d27
test/parallel/test-http2-respond-file-fd.js
@@ -2,19 +2,19 @@
2
'use strict';
3
4
const common = require('../common');
5
+const fixtures = require('../common/fixtures');
6
if (!common.hasCrypto)
7
common.skip('missing crypto');
8
const http2 = require('http2');
9
const assert = require('assert');
-const path = require('path');
10
const fs = require('fs');
11
12
const {
13
HTTP2_HEADER_CONTENT_TYPE,
14
HTTP2_HEADER_CONTENT_LENGTH
15
} = http2.constants;
16
17
-const fname = path.resolve(common.fixturesDir, 'elipses.txt');
+const fname = fixtures.path('elipses.txt');
18
const data = fs.readFileSync(fname);
19
const stat = fs.statSync(fname);
20
const fd = fs.openSync(fname, 'r');
0 commit comments