Skip to content
This repository was archived by the owner on Aug 31, 2018. It is now read-only.

Commit ecf846c

Browse files
tpurcelladdaleax
authored andcommitted
test: replace fixturesDir with fixtures module
PR-URL: nodejs/node#16262 Reviewed-By: James M Snell <jasnell@gmail.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: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent 7401a53 commit ecf846c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-https-client-resume.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ if (!common.hasCrypto)
3030
const assert = require('assert');
3131
const https = require('https');
3232
const tls = require('tls');
33-
const fs = require('fs');
33+
const fixtures = require('../common/fixtures');
3434

3535
const options = {
36-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`),
37-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`)
36+
key: fixtures.readKey('agent2-key.pem'),
37+
cert: fixtures.readKey('agent2-cert.pem')
3838
};
3939

4040
// create server

0 commit comments

Comments
 (0)