Skip to content

Commit 1554735

Browse files
targosTrott
authored andcommitted
test: fix child-process-uid-gid on Windows
The process.getuid method does not exist on this platform. Ref: #8864 PR-URL: #8924 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Wyatt Preul <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent d097311 commit 1554735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-child-process-uid-gid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const common = require('../common');
33
const assert = require('assert');
44
const spawn = require('child_process').spawn;
55

6-
if (process.getuid() === 0) {
6+
if (!common.isWindows && process.getuid() === 0) {
77
common.skip('as this test should not be run as `root`');
88
return;
99
}

0 commit comments

Comments
 (0)