Skip to content

Commit ab87520

Browse files
Mike Flemingtargos
authored andcommitted
test: replaces fixturesDir with fixtures
This commit updates the common.fixturesDir method in the https-timeout test. PR-URL: #15835 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 3266e1f commit ab87520

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/parallel/test-https-timeout.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ const common = require('../common');
2525
if (!common.hasCrypto)
2626
common.skip('missing crypto');
2727

28+
const fixtures = require('../common/fixtures');
2829
const https = require('https');
2930

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

3736
// a server that never replies

0 commit comments

Comments
 (0)