| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f7ab126 commit 6a44442
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,22 +6,19 @@ | |||
| 6 | 6 | // other than start listening. | |
| 7 | 7 | ||
| 8 | 8 | const common = require('../common'); | |
| 9 | + const commonFixtures = require('../common/fixtures'); | ||
| 9 | 10 | ||
| 10 | 11 | if (!common.hasCrypto) | |
| 11 | 12 | common.skip('missing crypto'); | |
| 12 | 13 | ||
| 13 | 14 | const assert = require('assert'); | |
| 14 | 15 | const http2 = require('http2'); | |
| 15 | - const path = require('path'); | ||
| 16 | 16 | const tls = require('tls'); | |
| 17 | 17 | const net = require('net'); | |
| 18 | - const fs = require('fs'); | ||
| 19 | 18 | ||
| 20 | 19 | const options = { | |
| 21 | - key: fs.readFileSync( | ||
| 22 | - path.resolve(common.fixturesDir, 'keys/agent2-key.pem')), | ||
| 23 | - cert: fs.readFileSync( | ||
| 24 | - path.resolve(common.fixturesDir, 'keys/agent2-cert.pem')) | ||
| 20 | + key: commonFixtures.readKey('agent2-key.pem'), | ||
| 21 | + cert: commonFixtures.readKey('agent2-cert.pem') | ||
| 25 | 22 | }; | |
| 26 | 23 | ||
| 27 | 24 | // There should not be any throws | |
| Back | FazBrowse Home | New Git URL |
0 commit comments