Skip to content

Commit

Permalink
test: Updated test to use readKey rather than fixturesDir
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Clewell committed Oct 10, 2017
1 parent a0bc9b2 commit e1089e2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/parallel/test-https-set-timeout-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,21 @@

'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');

if (!common.hasCrypto)
common.skip('missing crypto');

const assert = require('assert');
const fs = require('fs');
const fixtures = require('../common/fixtures');
const https = require('https');
const http = require('http');
const tls = require('tls');

const tests = [];

const serverOptions = {
key: fs.readFileSync(`${fixtures.fixturesDir}/keys/agent1-key.pem`),
cert: fs.readFileSync(`${fixtures.fixturesDir}/keys/agent1-cert.pem`)
key: fixtures.readKey('agent1-key.pem'),
cert: fixtures.readKey('agent1-cert.pem')
};

function test(fn) {
Expand Down

0 comments on commit e1089e2

Please sign in to comment.