Permalink
Browse files

test: use fixtures.readKey in https-timeout-server

Replace `common.fixturesDir` usage in test-https-timeout-server.js with
`fixtures.readKey()`.

PR-URL: #15871
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information...
nicolasnoble authored and MylesBorins committed Oct 6, 2017
1 parent d7b4ad8 commit 0d5ee95e36bf09a2f83684785a11265bcb178267
Showing with 4 additions and 3 deletions.
  1. +4 −3 test/parallel/test-https-timeout-server.js
@@ -25,15 +25,16 @@ 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 net = require('net');
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'),
handshakeTimeout: 50
};

0 comments on commit 0d5ee95

Please sign in to comment.