summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-fork-dgram.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-child-process-fork-dgram.js')
-rw-r--r--test/parallel/test-child-process-fork-dgram.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/parallel/test-child-process-fork-dgram.js b/test/parallel/test-child-process-fork-dgram.js
index be351cced0..4aa36261db 100644
--- a/test/parallel/test-child-process-fork-dgram.js
+++ b/test/parallel/test-child-process-fork-dgram.js
@@ -28,15 +28,13 @@
*/
const common = require('../common');
+if (common.isWindows)
+ common.skip('Sending dgram sockets to child processes is not supported');
+
const dgram = require('dgram');
const fork = require('child_process').fork;
const assert = require('assert');
-if (common.isWindows) {
- common.skip('Sending dgram sockets to child processes is not supported');
- return;
-}
-
if (process.argv[2] === 'child') {
let childServer;