Skip to content

Commit

Permalink
test: common.fixturesDir -> common.fixtures
Browse files Browse the repository at this point in the history
Update test-https-agent-session-reuse.js

PR-URL: #16028
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
  • Loading branch information
ppaugh authored and mhdawson committed Oct 11, 2017
1 parent e791057 commit 07f1efc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/parallel/test-dgram-send-empty-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let interval;

client.on('message', common.mustCall(function onMessage(buf, info) {
const expected = Buffer.alloc(0);
assert.ok(buf.equals(expected), 'message was received correctly');
assert.ok(buf.equals(expected), `Expected empty message but got ${buf}`);
clearInterval(interval);
client.close();
}));
Expand Down
9 changes: 4 additions & 5 deletions test/parallel/test-https-agent-session-reuse.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ if (!common.hasCrypto)

const https = require('https');
const crypto = require('crypto');

const fs = require('fs');
const fixtures = require('../common/fixtures');

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 ca = fs.readFileSync(`${common.fixturesDir}/keys/ca1-cert.pem`);
const ca = fixtures.readKey('ca1-cert.pem');

const clientSessions = {};
let serverRequests = 0;
Expand Down

0 comments on commit 07f1efc

Please sign in to comment.