blob: f3295f6d854a728b2c3b4288ae2681d5be3518d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
'use strict';
var common = require('../common');
var assert = require('assert');
if (!common.hasCrypto) {
common.skip('missing crypto');
return;
}
var tls = require('tls');
var conn = tls.connect(common.PORT, common.fail);
conn.on('error', common.mustCall(function() {
assert.doesNotThrow(function() {
conn.destroy();
});
}));
|