mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test: http2-respond-file-range to use fixtures
Changed test-http2-respond-file-range to use fixtures.path directly instead of passing through the common module. PR-URL: https://github.com/nodejs/node/pull/15852 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
d78086bd8a
commit
d60f9b775e
1 file changed
+2
-2
@@ -3,9 +3,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 {
|
||||
@@ -14,7 +14,7 @@ const {
|
||||
HTTP2_HEADER_LAST_MODIFIED
|
||||
} = http2.constants;
|
||||
|
||||
const fname = path.resolve(common.fixturesDir, 'printA.js');
|
||||
const fname = fixtures.path('printA.js');
|
||||
const data = fs.readFileSync(fname);
|
||||
const stat = fs.statSync(fname);
|
||||
|
||||
|
||||
Reference in new issue
Block a user