summaryrefslogtreecommitdiff
path: root/test/common/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/common/index.js')
-rw-r--r--test/common/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/common/index.js b/test/common/index.js
index 53977beef5..768570437a 100644
--- a/test/common/index.js
+++ b/test/common/index.js
@@ -56,6 +56,8 @@ const isOpenBSD = process.platform === 'openbsd';
const isLinux = process.platform === 'linux';
const isOSX = process.platform === 'darwin';
+const isOSXMojave = isOSX && (os.release().startsWith('18'));
+
const enoughTestMem = os.totalmem() > 0x70000000; /* 1.75 Gb */
const cpus = os.cpus();
const enoughTestCpu = Array.isArray(cpus) &&
@@ -712,6 +714,7 @@ module.exports = {
isMainThread,
isOpenBSD,
isOSX,
+ isOSXMojave,
isSunOS,
isWindows,
localIPv6Hosts,