Skip to content

Commit

Permalink
test: use fixtures module
Browse files Browse the repository at this point in the history
Replace usage of common.fixturesDir with fixtures module in
test-https-agent-disable-session-reuse.js.

PR-URL: #15901
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
  • Loading branch information
Iryna Yaremtso authored and MylesBorins committed Nov 28, 2017
1 parent 10c24a1 commit d6dc579
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/parallel/test-https-agent-disable-session-reuse.js
Original file line number Diff line number Diff line change
@@ -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 = [];
Expand Down

0 comments on commit d6dc579

Please sign in to comment.