diff --git a/test/parallel/test-fs-access.js b/test/parallel/test-fs-access.js index d0f730f25e12dd..a4057dcb8352b6 100644 --- a/test/parallel/test-fs-access.js +++ b/test/parallel/test-fs-access.js @@ -5,6 +5,9 @@ // and the errors thrown from these APIs include the desired properties const common = require('../common'); +if (!common.isWindows && process.getuid() === 0) + common.skip('as this test should not be run as `root`'); + const assert = require('assert'); const fs = require('fs'); const path = require('path');