blob: 4e4d4325906a9704e8bbc6f3491adfcaa08dba96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
'use strict';
const common = require('../common');
// This test verifies that `tls.connect()` honors the `timeout` option when the
// socket is internally created.
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const tls = require('tls');
const socket = tls.connect({
lookup: () => {},
timeout: 1000
});
assert.strictEqual(socket.timeout, 1000);
|