Permalink
Browse files

test: replace fixturesDir with fixtures module

PR-URL: #15848
Reviewed-By: Ryan Graham <r.m.graham@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information...
joeldart authored and Trott committed Oct 6, 2017
1 parent b7fec86 commit c4cb06195deaccf05cc8f4896000b2141a4b26e0
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/parallel/test-tls-disable-renegotiation.js
@@ -1,7 +1,7 @@
'use strict';
const common = require('../common');
const assert = require('assert');
const fs = require('fs');
const fixtures = require('../common/fixtures');
// Tests that calling disableRenegotiation on a TLSSocket stops renegotiation.
@@ -11,8 +11,8 @@ if (!common.hasCrypto)
const tls = require('tls');
const options = {
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
key: fixtures.readKey('agent1-key.pem'),
cert: fixtures.readKey('agent1-cert.pem')
};
const server = tls.Server(options, common.mustCall((socket) => {

0 comments on commit c4cb061

Please sign in to comment.