Skip to content

Commit 84f6964

Browse files
szhang351joyeecheung
szhang351
authored andcommitted
test: use fixtures.readSync
PR-URL: #15841 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent c42cdd4 commit 84f6964

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/parallel/test-https-drain.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@ const common = require('../common');
2424
if (!common.hasCrypto)
2525
common.skip('missing crypto');
2626

27+
const fixtures = require('../common/fixtures');
2728
const assert = require('assert');
2829
const https = require('https');
29-
const fs = require('fs');
30-
const path = require('path');
3130

3231
const options = {
33-
key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')),
34-
cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem'))
32+
key: fixtures.readSync('test_key.pem'),
33+
cert: fixtures.readSync('test_cert.pem')
3534
};
3635

3736
const bufSize = 1024 * 1024;

0 commit comments

Comments
 (0)