test: use fixtures module for path resolve
PR-URL: https://github.com/nodejs/node/pull/16842 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
parent
e7f30db1a6
commit
803cacd228
@ -1,10 +1,13 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
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 path = require('path');
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
constants,
|
constants,
|
||||||
@ -17,7 +20,7 @@ const {
|
|||||||
// - NGHTTP2_ERR_NOMEM (should emit session error)
|
// - NGHTTP2_ERR_NOMEM (should emit session error)
|
||||||
// - every other NGHTTP2 error from binding (should emit stream error)
|
// - every other NGHTTP2 error from binding (should emit stream error)
|
||||||
|
|
||||||
const fname = path.resolve(common.fixturesDir, 'elipses.txt');
|
const fname = fixtures.path('elipses.txt');
|
||||||
|
|
||||||
const specificTestKeys = [
|
const specificTestKeys = [
|
||||||
'NGHTTP2_ERR_NOMEM'
|
'NGHTTP2_ERR_NOMEM'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user