Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

Commit

Permalink
test: use fixtures.readKey()
Browse files Browse the repository at this point in the history
Use `fixtures.readKey()` in test-http2-create-client-secure-session.js.

PR-URL: nodejs/node#15862
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
Kasim Doctor authored and addaleax committed Oct 15, 2017
1 parent 0e34c0a commit 9cb8a01
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/parallel/test-http2-create-client-secure-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ if (!common.hasCrypto)
common.skip('missing crypto');

const assert = require('assert');
const path = require('path');
const fs = require('fs');
const tls = require('tls');
const fixtures = require('../common/fixtures');
const h2 = require('http2');
const tls = require('tls');

function loadKey(keyname) {
return fs.readFileSync(
path.join(common.fixturesDir, 'keys', keyname), 'binary');
return fixtures.readKey(keyname, 'binary');
}

function onStream(stream, headers) {
Expand Down

0 comments on commit 9cb8a01

Please sign in to comment.