node/test/parallel/test-tls-handshake-nohang.js
cjihrig ff1efa6087 test: use const for all require() calls
PR-URL: https://github.com/nodejs/node/pull/10550
Reviewed-By: Rich Trott <rtrott@gmail.com>
2017-01-02 18:28:18 -05:00

13 lines
271 B
JavaScript

'use strict';
const common = require('../common');
if (!common.hasCrypto) {
common.skip('missing crypto');
return;
}
const tls = require('tls');
// neither should hang
tls.createSecurePair(null, false, false, false);
tls.createSecurePair(null, true, false, false);