mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
test: replaces fixturesDir with fixtures
This commit updates the common.fixturesDir method in the https-timeout test. PR-URL: https://github.com/nodejs/node/pull/15835 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
57ae105c72
commit
541866ea86
1 file changed
+3
-4
@@ -4,13 +4,12 @@ const common = require('../common');
|
||||
if (!common.hasCrypto)
|
||||
common.skip('missing crypto');
|
||||
|
||||
const fixtures = require('../common/fixtures');
|
||||
const https = require('https');
|
||||
|
||||
const fs = require('fs');
|
||||
|
||||
const options = {
|
||||
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
|
||||
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
|
||||
key: fixtures.readKey('agent1-key.pem'),
|
||||
cert: fixtures.readKey('agent1-cert.pem')
|
||||
};
|
||||
|
||||
// a server that never replies
|
||||
|
||||
Reference in new issue
Block a user