Browse Source

test: fixtures in test-http2-respond-file-fd-range

PR-URL: https://github.com/nodejs/node/pull/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>
v9.x-staging
kysnm 7 years ago
committed by James M Snell
parent
commit
9943cb2950
  1. 4
      test/parallel/test-http2-respond-file-fd-range.js

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

@ -5,9 +5,9 @@
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 {
@ -15,7 +15,7 @@ const {
HTTP2_HEADER_CONTENT_LENGTH
} = http2.constants;
const fname = path.resolve(common.fixturesDir, 'printA.js');
const fname = fixtures.path('printA.js');
const data = fs.readFileSync(fname);
const fd = fs.openSync(fname, 'r');

Loading…
Cancel
Save