Skip to content

Commit 329d22f

Browse files
Ben MichelMylesBorins
authored andcommitted
test: use common.fixtures in tls test
PR-URL: #15965 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 9f9bd38 commit 329d22f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/parallel/test-tls-max-send-fragment.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,21 @@
2121

2222
'use strict';
2323
const common = require('../common');
24+
const fixtures = require('../common/fixtures');
25+
2426
if (!common.hasCrypto)
2527
common.skip('missing crypto');
2628

2729
const assert = require('assert');
2830
const tls = require('tls');
29-
const fs = require('fs');
3031

3132
const buf = Buffer.allocUnsafe(10000);
3233
let received = 0;
3334
const maxChunk = 768;
3435

3536
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')
3839
}, function(c) {
3940
// Lower and upper limits
4041
assert(!c.setMaxSendFragment(511));

0 commit comments

Comments
 (0)