diff --git a/test/common/index.js b/test/common/index.js index 5d9a4b31e36534..724d5f1486dc56 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -34,6 +34,10 @@ const { hasIntl } = process.binding('config'); +// Some tests assume a umask of 0o022 so set that up front. Tests that need a +// different umask will set it themselves. +process.umask(0o022); + const noop = () => {}; const hasCrypto = Boolean(process.versions.openssl);