summaryrefslogtreecommitdiff
path: root/test/sequential/test-child-process-emfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/sequential/test-child-process-emfile.js')
-rw-r--r--test/sequential/test-child-process-emfile.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/sequential/test-child-process-emfile.js b/test/sequential/test-child-process-emfile.js
index 59756e4c7b..e81b3a0ffe 100644
--- a/test/sequential/test-child-process-emfile.js
+++ b/test/sequential/test-child-process-emfile.js
@@ -21,15 +21,13 @@
'use strict';
const common = require('../common');
+if (common.isWindows)
+ common.skip('no RLIMIT_NOFILE on Windows');
+
const assert = require('assert');
const child_process = require('child_process');
const fs = require('fs');
-if (common.isWindows) {
- common.skip('no RLIMIT_NOFILE on Windows');
- return;
-}
-
const ulimit = Number(child_process.execSync('ulimit -Hn'));
if (ulimit > 64 || Number.isNaN(ulimit)) {
// Sorry about this nonsense. It can be replaced if