Skip to content

Commit 7cb17b1

Browse files
sercanyersenTrott
authored andcommitted
test: use fixtures module for path resolve
1 parent f2cb78c commit 7cb17b1

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
@@ -1,10 +1,13 @@
11
'use strict';
22

33
const common = require('../common');
4+
45
if (!common.hasCrypto)
56
common.skip('missing crypto');
7+
8+
const fixtures = require('../common/fixtures');
9+
610
const http2 = require('http2');
7-
const path = require('path');
811

912
const {
1013
constants,
@@ -17,7 +20,7 @@ const {
1720
// - NGHTTP2_ERR_NOMEM (should emit session error)
1821
// - every other NGHTTP2 error from binding (should emit stream error)
1922

20-
const fname = path.resolve(common.fixturesDir, 'elipses.txt');
23+
const fname = fixtures.path('elipses.txt');
2124

2225
const specificTestKeys = [
2326
'NGHTTP2_ERR_NOMEM'

0 commit comments

Comments
 (0)