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 c00ae86 commit 0b7993e
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 0b7993e

Please sign in to comment.