Skip to content

Commit 6fc7ffb

Browse files
RafaelGSSronag
authored andcommitted
test: add rejectUnauthorized for agent1 cert
1 parent df4f7e0 commit 6fc7ffb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/proxy-agent.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ test('Proxy via HTTPS to HTTPS endpoint', async (t) => {
374374
],
375375
key: readFileSync(join(__dirname, 'fixtures', 'client-key-2048.pem'), 'utf8'),
376376
cert: readFileSync(join(__dirname, 'fixtures', 'client-crt-2048.pem'), 'utf8'),
377-
servername: 'agent1'
377+
servername: 'agent1',
378+
rejectUnauthorized: false
378379
},
379380
requestTls: {
380381
ca: [
@@ -434,7 +435,8 @@ test('Proxy via HTTPS to HTTP endpoint', async (t) => {
434435
],
435436
key: readFileSync(join(__dirname, 'fixtures', 'client-key-2048.pem'), 'utf8'),
436437
cert: readFileSync(join(__dirname, 'fixtures', 'client-crt-2048.pem'), 'utf8'),
437-
servername: 'agent1'
438+
servername: 'agent1',
439+
rejectUnauthorized: false
438440
}
439441
})
440442

0 commit comments

Comments
 (0)