From 74e4c7f80ff1cee534f2da2870d0ddf73f7cb932 Mon Sep 17 00:00:00 2001 From: Rui He <118280419+ruihe774@users.noreply.github.com> Date: Sat, 30 Sep 2023 22:21:06 +0800 Subject: feat(node/os): Add `availableParallelism` (#20745) --- cli/tests/node_compat/test/parallel/test-os.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli/tests') 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); -- cgit v1.2.3