Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 362 Bytes
require('helper')
local fixture = require('./fixture-tls')
local tls = require('tls')
local options = {
cert = fixture.certPem,
key = fixture.certKey,
port = fixture.commonPort,
host = '127.0.0.1'
}
local conn = tls.connect(options, {}, function()
assert(true)
end)
conn:on('error', function(err)
end)
doesnt_throw(function()
conn:destroy()
end)
Jump to Line
Something went wrong with that request. Please try again.