Skip to content

Commit dd1d08b

Browse files
committedAug 22, 2019
[fix test] Update tests.
1 parent 16d4f8a commit dd1d08b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎test/lib-http-proxy-test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ describe('lib/http-proxy.js', function() {
562562
});
563563
});
564564

565-
destiny.on('connection', function (socket) {
566-
expect(socket.upgradeReq.headers['x-special-proxy-header']).to.eql('foobar');
565+
destiny.on('connection', function (socket, upgradeReq) {
566+
expect(upgradeReq.headers['x-special-proxy-header']).to.eql('foobar');
567567

568568
socket.on('message', function (msg) {
569569
expect(msg).to.be('hello there');

‎test/lib-https-proxy-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ describe('lib/http-proxy.js', function() {
168168
proxy.on('error', function (err, req, res) {
169169
expect(err).to.be.an(Error);
170170
if (semver.gt(process.versions.node, '0.12.0')) {
171-
expect(err.toString()).to.be('Error: self signed certificate')
171+
expect(err.toString()).to.be('Error: unable to verify the first certificate')
172172
} else {
173173
expect(err.toString()).to.be('Error: DEPTH_ZERO_SELF_SIGNED_CERT')
174174
}

0 commit comments

Comments
 (0)