diff options
author | Rui He <118280419+ruihe774@users.noreply.github.com> | 2023-09-30 22:21:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-30 19:51:06 +0530 |
commit | 74e4c7f80ff1cee534f2da2870d0ddf73f7cb932 (patch) | |
tree | 86cfcf055c0c9569392c576d6789b80c8e1363dc /cli | |
parent | 9017e789df59aa8fba400f3ad8ae3b8b8290b4a8 (diff) |
feat(node/os): Add `availableParallelism` (#20745)
Diffstat (limited to 'cli')
-rw-r--r-- | cli/tests/node_compat/test/parallel/test-os.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/tests/node_compat/test/parallel/test-os.js b/cli/tests/node_compat/test/parallel/test-os.js index d8425d0d5..9de4f516f 100644 --- a/cli/tests/node_compat/test/parallel/test-os.js +++ b/cli/tests/node_compat/test/parallel/test-os.js @@ -125,6 +125,9 @@ const platform = os.platform(); is.string(platform); assert.ok(platform.length > 0); +const availableParallelism = os.availableParallelism(); +assert.ok(availableParallelism === navigator.hardwareConcurrency); + const arch = os.arch(); is.string(arch); assert.ok(arch.length > 0); |