Skip to content

Commit

Permalink
test: use fixtures.readKey
Browse files Browse the repository at this point in the history
Replace the common.fixturesDir by fixtures.readKey
in http2 subsystem test 'server startup'.

PR-URL: #15892
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
Robin Lungwitz authored and MylesBorins committed Oct 11, 2017
1 parent f7ab126 commit 6a44442
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/parallel/test-http2-server-startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,19 @@
// other than start listening.

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

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

const assert = require('assert');
const http2 = require('http2');
const path = require('path');
const tls = require('tls');
const net = require('net');
const fs = require('fs');

const options = {
key: fs.readFileSync(
path.resolve(common.fixturesDir, 'keys/agent2-key.pem')),
cert: fs.readFileSync(
path.resolve(common.fixturesDir, 'keys/agent2-cert.pem'))
key: commonFixtures.readKey('agent2-key.pem'),
cert: commonFixtures.readKey('agent2-cert.pem')
};

// There should not be any throws
Expand Down

0 comments on commit 6a44442

Please sign in to comment.