diff options
author | Robin Lungwitz <robin.lungwitz@gmx.net> | 2017-10-06 18:54:03 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2017-10-09 02:13:19 -0700 |
commit | b5f3054eb66a427ee0703596a3c065ac984ac760 (patch) | |
tree | b5fcc41ca16ae26b10290334c6f15168cc51db33 /test/parallel/test-http2-server-startup.js | |
parent | c11a30dc5159c52aaeff2bcec39f5d5181f8bba2 (diff) | |
download | android-node-v8-b5f3054eb66a427ee0703596a3c065ac984ac760.tar.gz android-node-v8-b5f3054eb66a427ee0703596a3c065ac984ac760.tar.bz2 android-node-v8-b5f3054eb66a427ee0703596a3c065ac984ac760.zip |
test: use fixtures.readKey
Replace the common.fixturesDir by fixtures.readKey
in http2 subsystem test 'server startup'.
PR-URL: https://github.com/nodejs/node/pull/15892
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test/parallel/test-http2-server-startup.js')
-rw-r--r-- | test/parallel/test-http2-server-startup.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/parallel/test-http2-server-startup.js b/test/parallel/test-http2-server-startup.js index 73964a8886..0731b83a20 100644 --- a/test/parallel/test-http2-server-startup.js +++ b/test/parallel/test-http2-server-startup.js @@ -5,22 +5,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 |