| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1fdcf75 commit fafbbb6
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,14 +3,13 @@ const common = require('../common'); | |||
| 3 | 3 | if (!common.hasCrypto) | |
| 4 | 4 | common.skip('missing crypto'); | |
| 5 | 5 | ||
| 6 | + const fixtures = require('../common/fixtures'); | ||
| 6 | 7 | const assert = require('assert'); | |
| 7 | 8 | const tls = require('tls'); | |
| 8 | - const fs = require('fs'); | ||
| 9 | 9 | ||
| 10 | - const dir = common.fixturesDir; | ||
| 11 | - const options = { key: fs.readFileSync(`${dir}/test_key.pem`), | ||
| 12 | - cert: fs.readFileSync(`${dir}/test_cert.pem`), | ||
| 13 | - ca: [ fs.readFileSync(`${dir}/test_ca.pem`) ] }; | ||
| 10 | + const options = { key: fixtures.readSync('test_key.pem'), | ||
| 11 | + cert: fixtures.readSync('test_cert.pem'), | ||
| 12 | + ca: [ fixtures.readSync('test_ca.pem') ] }; | ||
| 14 | 13 | ||
| 15 | 14 | const server = tls.createServer(options, onconnection); | |
| 16 | 15 | let gotChunk = false; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments