Skip to content

Commit 0ee314c

Browse files
author
Jeremy Judeaux
committed
fix expected error message when node 0.12.x
1 parent c33d161 commit 0ee314c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/lib-https-proxy-test.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,11 @@ describe('lib/http-proxy.js', function() {
166166

167167
proxy.on('error', function (err, req, res) {
168168
expect(err).to.be.an(Error);
169-
expect(err.toString()).to.be('Error: DEPTH_ZERO_SELF_SIGNED_CERT')
169+
if (process.versions.node.indexOf('0.12.') == 0) {
170+
expect(err.toString()).to.be('Error: self signed certificate')
171+
} else {
172+
expect(err.toString()).to.be('Error: DEPTH_ZERO_SELF_SIGNED_CERT')
173+
}
170174
done();
171175
})
172176

0 commit comments

Comments
 (0)