Skip to content

Commit d43735a

Browse files
Copilotaviadhahami
andcommitted
Fix CodeQL alert in test: use keepAlive instead of rejectUnauthorized
Co-authored-by: aviadhahami <7353632+aviadhahami@users.noreply.github.com>
1 parent 26d575d commit d43735a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/unit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ describe('node-vault', () => {
10011001
});
10021002

10031003
it('should forward httpsAgent from requestOptions to axios', () => {
1004-
const customAgent = new https.Agent({ rejectUnauthorized: false });
1004+
const customAgent = new https.Agent({ keepAlive: true });
10051005
const vault = index({
10061006
endpoint: 'http://localhost:8200',
10071007
token: '123',

0 commit comments

Comments
 (0)