From 7cb17b1459e56bb7c986a2948e0b6fa22cbef5b8 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 --- 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 8ec0d9bf7131db..920c3eb908cfa2 100644 --- a/test/parallel/test-http2-respond-with-fd-errors.js +++ b/test/parallel/test-http2-respond-with-fd-errors.js @@ -1,10 +1,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, @@ -17,7 +20,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'