diff --git a/test/lib-http-proxy-test.js b/test/lib-http-proxy-test.js index b507a0052..e38809c18 100644 --- a/test/lib-http-proxy-test.js +++ b/test/lib-http-proxy-test.js @@ -562,8 +562,8 @@ describe('lib/http-proxy.js', function() { }); }); - destiny.on('connection', function (socket) { - expect(socket.upgradeReq.headers['x-special-proxy-header']).to.eql('foobar'); + destiny.on('connection', function (socket, upgradeReq) { + expect(upgradeReq.headers['x-special-proxy-header']).to.eql('foobar'); socket.on('message', function (msg) { expect(msg).to.be('hello there'); diff --git a/test/lib-https-proxy-test.js b/test/lib-https-proxy-test.js index a44fadbf8..904de629e 100644 --- a/test/lib-https-proxy-test.js +++ b/test/lib-https-proxy-test.js @@ -168,7 +168,7 @@ describe('lib/http-proxy.js', function() { proxy.on('error', function (err, req, res) { expect(err).to.be.an(Error); if (semver.gt(process.versions.node, '0.12.0')) { - expect(err.toString()).to.be('Error: self signed certificate') + expect(err.toString()).to.be('Error: unable to verify the first certificate') } else { expect(err.toString()).to.be('Error: DEPTH_ZERO_SELF_SIGNED_CERT') }