Skip to content

Commit

Permalink
Use rejectUnauthorized: false in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki authored and indexzero committed Feb 13, 2013
1 parent 0150d9f commit 3e07b6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/test-https.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ s.listen(s.port, function () {
var test = tests[i]
s.on('/'+i, test.resp)
test.uri = s.url + '/' + i
test.rejectUnauthorized = false
request(test, function (err, resp, body) {
if (err) throw err
if (test.expectBody) {
Expand Down
3 changes: 2 additions & 1 deletion tests/test-protocol-changing-redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ for (var i = 0; i < 5; i ++) {
var val = 'test_' + i
expect[val] = true
request({ url: (i % 2 ? sUrl : ssUrl) + '/a'
, headers: { 'x-test-key': val } })
, headers: { 'x-test-key': val }
, rejectUnauthorized: false })
}

function done () {
Expand Down

0 comments on commit 3e07b6d

Please sign in to comment.