Skip to content

Commit 69fe9b2

Browse files
Ivan Etchartaddaleax
Ivan Etchart
authored andcommitted
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: nodejs/node#15893 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 92b3ecf commit 69fe9b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-tls-ecdh.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
'use strict';
2323
const common = require('../common');
24+
const fixtures = require('../common/fixtures');
2425

2526
if (!common.hasCrypto)
2627
common.skip('missing crypto');
@@ -32,11 +33,10 @@ const assert = require('assert');
3233
const tls = require('tls');
3334

3435
const exec = require('child_process').exec;
35-
const fs = require('fs');
3636

3737
const options = {
38-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`),
39-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`),
38+
key: fixtures.readKey('agent2-key.pem'),
39+
cert: fixtures.readKey('agent2-cert.pem'),
4040
ciphers: '-ALL:ECDHE-RSA-AES128-SHA256',
4141
ecdhCurve: 'prime256v1'
4242
};

0 commit comments

Comments
 (0)