Skip to content

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: #15862
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
Kasim Doctor authored and targos committed Oct 18, 2017
1 parent 824be6d commit 181ee5d
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 @@ -7,14 +7,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 181ee5d

Please sign in to comment.