mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: use fixtures.readKey()
Use `fixtures.readKey()` in test-http2-create-client-secure-session.js. PR-URL: https://github.com/nodejs/node/pull/15862 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
824be6dc1d
commit
181ee5d1ef
1 file changed
+3
-5
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user