Skip to content

Commit

Permalink
test: use common.fixtures in tls test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Michel committed Oct 6, 2017
1 parent 4f339b5 commit 6a98d26
Showing 1 changed file with 5 additions and 2 deletions.
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

0 comments on commit 6a98d26

Please sign in to comment.