Skip to content

Commit 023fb10

Browse files
committed
test fixes v3
1 parent 264af38 commit 023fb10

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

test/test.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ describe('HttpsProxyAgent', () => {
150150
hostname: 'localhost',
151151
port: proxyPort,
152152
protocol: 'http',
153-
tls: {rejectUnauthorized: false}
153+
tls: {rejectUnauthorized: false},
154+
rejectUnauthorized: false
154155
}),
155156
}, res => {
156157
let data = ''
@@ -182,7 +183,7 @@ describe('HttpsProxyAgent', () => {
182183
ca: fs.readFileSync(`${__dirname}/cacert.pem`)
183184
},
184185
rejectUnauthorized: false
185-
})
186+
}),
186187
}, res => {
187188
let data = ''
188189
res.setEncoding('utf8')
@@ -365,6 +366,7 @@ describe('HttpsProxyAgent', () => {
365366
hostname: 'localhost',
366367
port: proxyPort,
367368
protocol: 'http',
369+
tls: {rejectUnauthorized: false},
368370
rejectUnauthorized: false
369371
}),
370372
rejectUnauthorized: false
@@ -393,7 +395,8 @@ describe('HttpsProxyAgent', () => {
393395
hostname: 'localhost',
394396
port: sslProxyPort,
395397
protocol: 'https',
396-
tls: {rejectUnauthorized: false}
398+
tls: {rejectUnauthorized: false},
399+
rejectUnauthorized: false
397400
}),
398401
rejectUnauthorized: false,
399402
}, res => {
@@ -421,7 +424,8 @@ describe('HttpsProxyAgent', () => {
421424
hostname: 'localhost',
422425
port: sslProxyPort,
423426
protocol: 'https',
424-
tls: {rejectUnauthorized: false}
427+
tls: {rejectUnauthorized: false},
428+
rejectUnauthorized: false
425429
}),
426430
rejectUnauthorized: false,
427431
}, res => {
@@ -603,6 +607,7 @@ describe('SocksProxyAgent', () => {
603607
path: '/foo',
604608
agent: new SocksProxyAgent(`socks://localhost:${socksPort}`, {
605609
tls: {rejectUnauthorized: false},
610+
rejectUnauthorized: false
606611
}),
607612
rejectUnauthorized: false,
608613
headers: { foo: 'bar' }

0 commit comments

Comments
 (0)