test: replace common.fixturesDir with fixture
PR-URL: https://github.com/nodejs/node/pull/15940 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
31ab2ebbde
commit
3f5f847ed1
@ -4,9 +4,9 @@ const common = require('../common');
|
||||
if (!common.hasCrypto)
|
||||
common.skip('missing crypto');
|
||||
const http2 = require('http2');
|
||||
const path = require('path');
|
||||
const fixtures = require('../common/fixtures');
|
||||
|
||||
const fname = path.resolve(common.fixturesDir, 'elipses.txt');
|
||||
const fname = fixtures.path('elipses.txt');
|
||||
|
||||
const server = http2.createServer(common.mustCall((request, response) => {
|
||||
response.stream.respondWithFile(fname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user