Skip to content

Commit 2ab826c

Browse files
Lam ChanMylesBorins
Lam Chan
authored andcommitted
test: replaced fs.readSync with fixtures.readSync
NINA 2017 Code and Learn session for first time contributors. This touched test/parallel/test-https-socket-options.js to replace common.fixturesDir PR-URL: #15882 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent aefaed4 commit 2ab826c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-https-socket-options.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ const common = require('../common');
44
if (!common.hasCrypto)
55
common.skip('missing crypto');
66

7+
const fixtures = require('../common/fixtures');
78
const https = require('https');
8-
const fs = require('fs');
99
const http = require('http');
1010

1111
const options = {
12-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
13-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
12+
key: fixtures.readKey('agent1-key.pem'),
13+
cert: fixtures.readKey('agent1-cert.pem')
1414
};
1515

1616
const body = 'hello world\n';

0 commit comments

Comments
 (0)