| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bd49ada commit 21a8a82
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,6 +21,7 @@ | |||
| 21 | 21 | ||
| 22 | 22 | 'use strict'; | |
| 23 | 23 | const common = require('../common'); | |
| 24 | + const fixtures = require('../common/fixtures'); | ||
| 24 | 25 | if (!common.hasCrypto) | |
| 25 | 26 | common.skip('missing crypto'); | |
| 26 | 27 | ||
@@ -30,11 +31,10 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; | |||
| 30 | 31 | const https = require('https'); | |
| 31 | 32 | ||
| 32 | 33 | const tls = require('tls'); | |
| 33 | - const fs = require('fs'); | ||
| 34 | 34 | ||
| 35 | 35 | const options = { | |
| 36 | - key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), | ||
| 37 | - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) | ||
| 36 | + key: fixtures.readKey('agent1-key.pem'), | ||
| 37 | + cert: fixtures.readKey('agent1-cert.pem') | ||
| 38 | 38 | }; | |
| 39 | 39 | ||
| 40 | 40 | // Force splitting incoming data | |
| Back | FazBrowse Home | New Git URL |
0 commit comments