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 targos committed Oct 18, 2017
1 parent 3266e1f commit ab87520
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 @@ -25,13 +25,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 ab87520

Please sign in to comment.