Browse Source

test: use common.fixtures module

Use common.fixtures module in test-https-agent-session-eviction

PR-URL: https://github.com/nodejs/node/pull/16012
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
v9.x-staging
Chi-chi Wang 7 years ago
committed by James M Snell
parent
commit
8d3e82fd6c
  1. 6
      test/parallel/test-https-agent-session-eviction.js

6
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
};

Loading…
Cancel
Save