| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a05fe5f commit 28756b3
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,12 +3,12 @@ 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 key = fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`); | ||
| 11 | - const cert = fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`); | ||
| 10 | + const key = fixtures.readKey('agent1-key.pem'); | ||
| 11 | + const cert = fixtures.readKey('agent1-cert.pem'); | ||
| 12 | 12 | ||
| 13 | 13 | tls.createServer({ key: key, cert: cert }, common.mustCall(function(conn) { | |
| 14 | 14 | conn.end(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments