From d6dc579f3ce316c549c8ed611a53e6372ca0c936 Mon Sep 17 00:00:00 2001 From: Iryna Yaremtso Date: Fri, 6 Oct 2017 10:00:59 -0700 Subject: [PATCH] test: use fixtures module Replace usage of common.fixturesDir with fixtures module in test-https-agent-disable-session-reuse.js. PR-URL: https://github.com/nodejs/node/pull/15901 Reviewed-By: Colin Ihrig Reviewed-By: Joyee Cheung --- test/parallel/test-https-agent-disable-session-reuse.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-https-agent-disable-session-reuse.js b/test/parallel/test-https-agent-disable-session-reuse.js index 4f92547e999ac2..b3d0327f59b1ad 100644 --- a/test/parallel/test-https-agent-disable-session-reuse.js +++ b/test/parallel/test-https-agent-disable-session-reuse.js @@ -1,17 +1,19 @@ 'use strict'; const common = require('../common'); + if (!common.hasCrypto) common.skip('missing crypto'); +const fixtures = require('../common/fixtures'); + const assert = require('assert'); const https = require('https'); -const fs = require('fs'); const TOTAL_REQS = 2; const options = { - key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) + key: fixtures.readKey('agent1-key.pem'), + cert: fixtures.readKey('agent1-cert.pem') }; const clientSessions = [];