diff options
author | Dolapo Toki <dolapotoki@gmail.com> | 2017-10-06 09:39:43 -0700 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2017-10-13 20:36:40 +0800 |
commit | c42cdd49199a69e40edbb356e1b546e322906f7d (patch) | |
tree | f36165148d9377ed0842358d32178f176be5404e /test/parallel/test-tls-async-cb-after-socket-end.js | |
parent | 734ec0b854611d59d0894e0b9a2f4a63250f9bc6 (diff) | |
download | android-node-v8-c42cdd49199a69e40edbb356e1b546e322906f7d.tar.gz android-node-v8-c42cdd49199a69e40edbb356e1b546e322906f7d.tar.bz2 android-node-v8-c42cdd49199a69e40edbb356e1b546e322906f7d.zip |
test: replaced fixturesDir with common.fixtures
PR-URL: https://github.com/nodejs/node/pull/15836
Reviewed-By: Lance Ball <lball@redhat.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test/parallel/test-tls-async-cb-after-socket-end.js')
-rw-r--r-- | test/parallel/test-tls-async-cb-after-socket-end.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/parallel/test-tls-async-cb-after-socket-end.js b/test/parallel/test-tls-async-cb-after-socket-end.js index 6b4d2bd9f5..2e1fbe54ae 100644 --- a/test/parallel/test-tls-async-cb-after-socket-end.js +++ b/test/parallel/test-tls-async-cb-after-socket-end.js @@ -3,17 +3,14 @@ const common = require('../common'); if (!common.hasCrypto) common.skip('missing crypto'); - -const path = require('path'); -const fs = require('fs'); +const fixtures = require('../common/fixtures'); const SSL_OP_NO_TICKET = require('crypto').constants.SSL_OP_NO_TICKET; - const tls = require('tls'); const options = { secureOptions: SSL_OP_NO_TICKET, - key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')), - cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')) + key: fixtures.readSync('test_key.pem'), + cert: fixtures.readSync('test_cert.pem') }; const server = tls.createServer(options, function(c) { |