Skip to content

Commit

Permalink
test: replaces fixturesDir with fixtures
Browse files Browse the repository at this point in the history
This commit updates the common.fixturesDir method
in the https-timeout test.

PR-URL: #15835
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
Mike Fleming authored and MylesBorins committed Nov 28, 2017
1 parent 57ae105 commit 541866e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/parallel/test-https-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');

const fixtures = require('../common/fixtures');
const https = require('https');

const fs = require('fs');

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')
};

// a server that never replies
Expand Down

0 comments on commit 541866e

Please sign in to comment.