Add empty request error handler

This commit is contained in:
Kevin Sawicki 2016-08-26 09:51:54 -07:00
parent e38bc17a7b
commit b17a2874f8

View file

@ -328,6 +328,7 @@ describe('ipc module', function () {
it('does not crash on HTTP request objects (regression)', function (done) {
const request = http.request({port: 5000, hostname: '127.0.0.1', method: 'GET', path: '/'})
request.on('error', function () {})
ipcRenderer.once('message', function (event, value) {
assert.equal(value.method, 'GET')
assert.equal(value.path, '/')