| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,20 +21,21 @@ | |||
| 21 | 21 | ||
| 22 | 22 | 'use strict'; | |
| 23 | 23 | const common = require('../common'); | |
| 24 | + const fixtures = require('../common/fixtures'); | ||
| 25 | + | ||
| 24 | 26 | if (!common.hasCrypto) | |
| 25 | 27 | common.skip('missing crypto'); | |
| 26 | 28 | ||
| 27 | 29 | const assert = require('assert'); | |
| 28 | 30 | const tls = require('tls'); | |
| 29 | - const fs = require('fs'); | ||
| 30 | 31 | ||
| 31 | 32 | const buf = Buffer.allocUnsafe(10000); | |
| 32 | 33 | let received = 0; | |
| 33 | 34 | const maxChunk = 768; | |
| 34 | 35 | ||
| 35 | 36 | const server = tls.createServer({ | |
| 36 | - key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), | ||
| 37 | - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) | ||
| 37 | + key: fixtures.readKey('agent1-key.pem'), | ||
| 38 | + cert: fixtures.readKey('agent1-cert.pem') | ||
| 38 | 39 | }, function(c) { | |
| 39 | 40 | // Lower and upper limits | |
| 40 | 41 | assert(!c.setMaxSendFragment(511)); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments