Skip to content

Commit

Permalink
fix expected error message when node 0.12.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Judeaux committed Apr 2, 2015
1 parent c33d161 commit 0ee314c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/lib-https-proxy-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ describe('lib/http-proxy.js', function() {

proxy.on('error', function (err, req, res) {
expect(err).to.be.an(Error);
expect(err.toString()).to.be('Error: DEPTH_ZERO_SELF_SIGNED_CERT')
if (process.versions.node.indexOf('0.12.') == 0) {
expect(err.toString()).to.be('Error: self signed certificate')
} else {
expect(err.toString()).to.be('Error: DEPTH_ZERO_SELF_SIGNED_CERT')
}
done();
})

Expand Down

0 comments on commit 0ee314c

Please sign in to comment.