Skip to content

Commit dd1d08b

Browse files
committed
[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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy