Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/parallel/test-fs-mkdtempDisposableSync.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if (isMainThread) {

// Errors from cleanup are thrown
// It is difficult to arrange for rmdir to fail on windows
if (!common.isWindows) {
if (!common.isWindows && process.getuid() !== 0) {
const base = fs.mkdtempDisposableSync(tmpdir.resolve('foo.'));

// On Unix we can prevent removal by making the parent directory read-only
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-fs-promises-mkdtempDisposable.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function chdirDoesNotAffectRemoval() {

async function errorsAreReThrown() {
// It is difficult to arrange for rmdir to fail on windows
if (common.isWindows) return;
if (common.isWindows || process.getuid() === 0) return;
const base = await fsPromises.mkdtempDisposable(tmpdir.resolve('foo.'));

// On Unix we can prevent removal by making the parent directory read-only
Expand Down
Loading