http2: replace fixturesDir with common.fixtures
PR-URL: https://github.com/nodejs/node/pull/15839 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
88d05aa43b
commit
6b5433dcd2
@ -3,16 +3,16 @@
|
|||||||
const common = require('../common');
|
const common = require('../common');
|
||||||
if (!common.hasCrypto)
|
if (!common.hasCrypto)
|
||||||
common.skip('missing crypto');
|
common.skip('missing crypto');
|
||||||
|
const fixtures = require('../common/fixtures');
|
||||||
const http2 = require('http2');
|
const http2 = require('http2');
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
const path = require('path');
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
HTTP2_HEADER_CONTENT_TYPE,
|
HTTP2_HEADER_CONTENT_TYPE,
|
||||||
HTTP2_HEADER_STATUS
|
HTTP2_HEADER_STATUS
|
||||||
} = http2.constants;
|
} = http2.constants;
|
||||||
|
|
||||||
const fname = path.resolve(common.fixturesDir, 'elipses.txt');
|
const fname = fixtures.path('elipses.txt');
|
||||||
|
|
||||||
const server = http2.createServer();
|
const server = http2.createServer();
|
||||||
server.on('stream', (stream) => {
|
server.on('stream', (stream) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user