Skip to content

Commit

Permalink
test: use fixtures module for path resolve
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sercanyersen authored and MylesBorins committed Nov 17, 2017
1 parent 6ab706d commit 375bec0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/parallel/test-http2-respond-with-fd-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
'use strict';

const common = require('../common');

if (!common.hasCrypto)
common.skip('missing crypto');

const fixtures = require('../common/fixtures');

const http2 = require('http2');
const path = require('path');

const {
constants,
Expand All @@ -18,7 +21,7 @@ const {
// - NGHTTP2_ERR_NOMEM (should emit session 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 = [
'NGHTTP2_ERR_NOMEM'
Expand Down

0 comments on commit 375bec0

Please sign in to comment.