From 375bec00a48f2730cb5e3b714e0fa38073cb41b9 Mon Sep 17 00:00:00 2001 From: sercan yersen Date: Mon, 6 Nov 2017 16:45:07 +0000 Subject: [PATCH] test: use fixtures module for path resolve MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/16842 Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil --- test/parallel/test-http2-respond-with-fd-errors.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http2-respond-with-fd-errors.js b/test/parallel/test-http2-respond-with-fd-errors.js index 0bfbd2a3551da1..2fc1eb7102feb1 100644 --- a/test/parallel/test-http2-respond-with-fd-errors.js +++ b/test/parallel/test-http2-respond-with-fd-errors.js @@ -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, @@ -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'