Skip to content

Commit 0e1455b

Browse files
Bob Clewelljasnell
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 c4231aa commit 0e1455b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ if (!common.hasCrypto)
2626
common.skip('missing crypto');
2727

2828
const assert = require('assert');
29-
const fs = require('fs');
29+
const fixtures = require('../common/fixtures');
3030
const https = require('https');
3131
const http = require('http');
3232
const tls = require('tls');
3333

3434
const tests = [];
3535

3636
const serverOptions = {
37-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
38-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
37+
key: fixtures.readKey('agent1-key.pem'),
38+
cert: fixtures.readKey('agent1-cert.pem')
3939
};
4040

4141
function test(fn) {

0 commit comments

Comments
 (0)