Skip to content

Commit 375bec0

Browse files
sercanyersenMylesBorins
authored andcommitted
test: use fixtures module for path resolve
PR-URL: #16842 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent 6ab706d commit 375bec0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/parallel/test-http2-respond-with-fd-errors.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
'use strict';
33

44
const common = require('../common');
5+
56
if (!common.hasCrypto)
67
common.skip('missing crypto');
8+
9+
const fixtures = require('../common/fixtures');
10+
711
const http2 = require('http2');
8-
const path = require('path');
912

1013
const {
1114
constants,
@@ -18,7 +21,7 @@ const {
1821
// - NGHTTP2_ERR_NOMEM (should emit session error)
1922
// - every other NGHTTP2 error from binding (should emit stream error)
2023

21-
const fname = path.resolve(common.fixturesDir, 'elipses.txt');
24+
const fname = fixtures.path('elipses.txt');
2225

2326
const specificTestKeys = [
2427
'NGHTTP2_ERR_NOMEM'

0 commit comments

Comments
 (0)