aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-async-cb-after-socket-end.js
diff options
context:
space:
mode:
authorDolapo Toki <dolapotoki@gmail.com>2017-10-06 09:39:43 -0700
committerJoyee Cheung <joyeec9h3@gmail.com>2017-10-13 20:36:40 +0800
commitc42cdd49199a69e40edbb356e1b546e322906f7d (patch)
treef36165148d9377ed0842358d32178f176be5404e /test/parallel/test-tls-async-cb-after-socket-end.js
parent734ec0b854611d59d0894e0b9a2f4a63250f9bc6 (diff)
downloadandroid-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.js9
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) {