| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d6dc579 commit 8e62fcb
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,16 +4,16 @@ const common = require('../common'); | |||
| 4 | 4 | if (!common.hasCrypto) | |
| 5 | 5 | common.skip('missing crypto'); | |
| 6 | 6 | ||
| 7 | + const fixtures = require('../common/fixtures'); | ||
| 8 | + | ||
| 7 | 9 | const assert = require('assert'); | |
| 8 | - const fs = require('fs'); | ||
| 9 | - const path = require('path'); | ||
| 10 | 10 | const tls = require('tls'); | |
| 11 | 11 | ||
| 12 | 12 | // https://github.com/joyent/node/issues/1218 | |
| 13 | 13 | // uncatchable exception on TLS connection error | |
| 14 | 14 | { | |
| 15 | - const cert = fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')); | ||
| 16 | - const key = fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')); | ||
| 15 | + const cert = fixtures.readSync('test_cert.pem'); | ||
| 16 | + const key = fixtures.readSync('test_key.pem'); | ||
| 17 | 17 | ||
| 18 | 18 | const options = {cert: cert, key: key, port: common.PORT}; | |
| 19 | 19 | const conn = tls.connect(options, common.fail); | |
@@ -26,8 +26,8 @@ const tls = require('tls'); | |||
| 26 | 26 | ||
| 27 | 27 | // SSL_accept/SSL_connect error handling | |
| 28 | 28 | { | |
| 29 | - const cert = fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')); | ||
| 30 | - const key = fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')); | ||
| 29 | + const cert = fixtures.readSync('test_cert.pem'); | ||
| 30 | + const key = fixtures.readSync('test_key.pem'); | ||
| 31 | 31 | ||
| 32 | 32 | const conn = tls.connect({ | |
| 33 | 33 | cert: cert, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments