Skip to content

Commit

Permalink
Don’t assign certs if none are available in node-no-warn.js (#71)
Browse files Browse the repository at this point in the history
This script is used in running jest tests and now for the stress tests.
We will probably want to make a new one for stress.. for now just leave
the env setting blank
  • Loading branch information
texuf authored May 27, 2024
1 parent 1ba7b2c commit 25439aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/node-no-warn.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ var localRiverCA = path.join(os.homedir(), 'river-ca-cert.pem')

if (!fs.existsSync(localRiverCA)) {
console.log('CA does not exist, did you forget to run ../scripts/register-ca.sh')
} else {
process.env.NODE_EXTRA_CA_CERTS = localRiverCA
}
process.env.NODE_EXTRA_CA_CERTS = localRiverCA

// Increase max listeners from 10 to 100 to avoid warnings for legitimate use cases.
require('events').setMaxListeners(100)
Expand Down

0 comments on commit 25439aa

Please sign in to comment.