test: replace fixturesDir with fixtures module
`test/parallel/test-tls-ecdh.js` was loading fixture keys using `common.fixturesDir`. Now it's using `fixtures.readKey` instead. PR-URL: https://github.com/nodejs/node/pull/15893 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
c0c5e262dd
commit
c11a30dc51
@ -21,6 +21,7 @@
|
||||
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
const fixtures = require('../common/fixtures');
|
||||
|
||||
if (!common.hasCrypto)
|
||||
common.skip('missing crypto');
|
||||
@ -32,11 +33,10 @@ const assert = require('assert');
|
||||
const tls = require('tls');
|
||||
|
||||
const exec = require('child_process').exec;
|
||||
const fs = require('fs');
|
||||
|
||||
const options = {
|
||||
key: fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`),
|
||||
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`),
|
||||
key: fixtures.readKey('agent2-key.pem'),
|
||||
cert: fixtures.readKey('agent2-cert.pem'),
|
||||
ciphers: '-ALL:ECDHE-RSA-AES128-SHA256',
|
||||
ecdhCurve: 'prime256v1'
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user