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

Commit 93f52a0

Browse files
scottjbeckaddaleax
authored andcommitted
test: use fixtures module
PR-URL: nodejs/node#15843 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent a0c3019 commit 93f52a0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/parallel/test-https-localaddress-bind-error.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ if (!common.hasCrypto)
2525
common.skip('missing crypto');
2626

2727
const assert = require('assert');
28-
const fs = require('fs');
2928
const https = require('https');
3029

30+
const fixtures = require('../common/fixtures');
31+
3132
const options = {
32-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
33-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
33+
key: fixtures.readKey('agent1-key.pem'),
34+
cert: fixtures.readKey('agent1-cert.pem')
3435
};
3536

3637
const invalidLocalAddress = '1.2.3.4';

0 commit comments

Comments
 (0)