summaryrefslogtreecommitdiff
path: root/test/parallel/test-cluster-shared-handle-bind-privileged-port.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-cluster-shared-handle-bind-privileged-port.js')
-rw-r--r--test/parallel/test-cluster-shared-handle-bind-privileged-port.js16
1 files changed, 6 insertions, 10 deletions
diff --git a/test/parallel/test-cluster-shared-handle-bind-privileged-port.js b/test/parallel/test-cluster-shared-handle-bind-privileged-port.js
index 419307d52c..8f05b28fed 100644
--- a/test/parallel/test-cluster-shared-handle-bind-privileged-port.js
+++ b/test/parallel/test-cluster-shared-handle-bind-privileged-port.js
@@ -21,19 +21,15 @@
'use strict';
const common = require('../common');
-const assert = require('assert');
-const cluster = require('cluster');
-const net = require('net');
-
-if (common.isWindows) {
+if (common.isWindows)
common.skip('not reliable on Windows');
- return;
-}
-if (process.getuid() === 0) {
+if (process.getuid() === 0)
common.skip('as this test should not be run as `root`');
- return;
-}
+
+const assert = require('assert');
+const cluster = require('cluster');
+const net = require('net');
if (cluster.isMaster) {
// Master opens and binds the socket and shares it with the worker.