Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 375bec0

Browse filesBrowse files
sercanyersenMylesBorins
authored andcommitted
test: use fixtures module for path resolve
PR-URL: #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>
1 parent 6ab706d commit 375bec0
Copy full SHA for 375bec0

File tree

Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-http2-respond-with-fd-errors.js
+5-2Lines changed: 5 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.