Skip to content
Permalink
Browse files

test: fs.readFileSync -> fixtures.readKey

PR-URL: #16030
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
EthanRBrown authored and MylesBorins committed Oct 6, 2017
1 parent dabdb2d commit 76ab029bea55cada8b35ba360ab791c7b4924768
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/parallel/test-https-timeout-server-2.js
@@ -3,15 +3,15 @@
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 tls = require('tls');
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')
};

const server = https.createServer(options, common.mustNotCall());

0 comments on commit 76ab029

Please sign in to comment.
You can’t perform that action at this time.