Skip to content

Commit

Permalink
fixup! test: set umask for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Jan 9, 2019
1 parent c3c94c0 commit 8036a8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ const {

// 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);
//
// process.umask() is not available in workers so we need to check for its
// existence.
if (process.umask)
process.umask(0o022);

const noop = () => {};

Expand Down

0 comments on commit 8036a8b

Please sign in to comment.