Skip to content

Commit 6b8830c

Browse files
Bob ClewellMylesBorins
Bob Clewell
authored andcommitted
test: use fixtures in test-https-set-timeout-server
Task to replace the common.fixturesDir with the usage of the common.fixtures module. At Node.js Interactive. First PR to Node.js. Yay! PR-URL: #15886 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 57590cd commit 6b8830c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-https-set-timeout-server.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
'use strict';
22
const common = require('../common');
3-
const assert = require('assert');
43

54
if (!common.hasCrypto)
65
common.skip('missing crypto');
76

7+
const assert = require('assert');
8+
const fixtures = require('../common/fixtures');
89
const https = require('https');
910
const http = require('http');
1011

1112
const tls = require('tls');
12-
const fs = require('fs');
1313

1414
const tests = [];
1515

1616
const serverOptions = {
17-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
18-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
17+
key: fixtures.readKey('agent1-key.pem'),
18+
cert: fixtures.readKey('agent1-cert.pem')
1919
};
2020

2121
function test(fn) {

0 commit comments

Comments
 (0)