summaryrefslogtreecommitdiff
path: root/test/parallel/test-listen-fd-detached-inherit.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-listen-fd-detached-inherit.js')
-rw-r--r--test/parallel/test-listen-fd-detached-inherit.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/parallel/test-listen-fd-detached-inherit.js b/test/parallel/test-listen-fd-detached-inherit.js
index f3f33055ac..aad8d663c9 100644
--- a/test/parallel/test-listen-fd-detached-inherit.js
+++ b/test/parallel/test-listen-fd-detached-inherit.js
@@ -21,16 +21,14 @@
'use strict';
const common = require('../common');
+if (common.isWindows)
+ common.skip('This test is disabled on windows.');
+
const assert = require('assert');
const http = require('http');
const net = require('net');
const spawn = require('child_process').spawn;
-if (common.isWindows) {
- common.skip('This test is disabled on windows.');
- return;
-}
-
switch (process.argv[2]) {
case 'child': return child();
case 'parent': return parent();