Browse Source

test: fs.readFileSync -> fixtures.readKey

PR-URL: https://github.com/nodejs/node/pull/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>
v9.x-staging
Ethan Brown 7 years ago
committed by Rich Trott
parent
commit
bf8f1d3208
  1. 6
      test/parallel/test-https-timeout-server-2.js

6
test/parallel/test-https-timeout-server-2.js

@ -24,15 +24,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());

Loading…
Cancel
Save