Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
test: use common.fixtures in tls test
  • Loading branch information
Ben Michel committed Oct 6, 2017
commit 6a98d26c53f56fc2ea291ecad0cb653e8f77bf47
7 changes: 5 additions & 2 deletions test/parallel/test-tls-max-send-fragment.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.

'use strict';
const path = require('path');
const common = require('../common');
const fixtures = require('../common/fixtures');

if (!common.hasCrypto)
common.skip('missing crypto');

Expand All @@ -33,8 +36,8 @@ let received = 0;
const maxChunk = 768;

const server = tls.createServer({
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
key: fs.readFileSync(path.join(fixtures.fixturesDir, `/keys/agent1-key.pem`)),
cert: fs.readFileSync(path.join(fixtures.fixturesDir, `/keys/agent1-cert.pem`))
}, function(c) {
// Lower and upper limits
assert(!c.setMaxSendFragment(511));
Expand Down