From 07fbb2f20690232e58021a27dce0b1300d125586 Mon Sep 17 00:00:00 2001 From: Chi-chi Wang Date: Fri, 6 Oct 2017 13:39:49 -0500 Subject: [PATCH] test: use common.fixtures module Use common.fixtures module in test-https-agent-session-eviction --- test/parallel/test-https-agent-session-eviction.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-https-agent-session-eviction.js b/test/parallel/test-https-agent-session-eviction.js index 567ed809e646c3..616604124acf34 100644 --- a/test/parallel/test-https-agent-session-eviction.js +++ b/test/parallel/test-https-agent-session-eviction.js @@ -1,18 +1,18 @@ 'use strict'; const common = require('../common'); +const { readKey } = require('../common/fixtures'); if (!common.hasCrypto) common.skip('missing crypto'); const assert = require('assert'); const https = require('https'); -const fs = require('fs'); const SSL_OP_NO_TICKET = require('crypto').constants.SSL_OP_NO_TICKET; const options = { - key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`), + key: readKey('agent1-key.pem'), + cert: readKey('agent1-cert.pem'), secureOptions: SSL_OP_NO_TICKET };