repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2301b8
)
test: improve availableParallelism() test
author
Jérôme Benoit
<jerome.benoit@sap.com>
Sat, 22 Jul 2023 02:41:16 +0000
(
04:41
+0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Sat, 22 Jul 2023 02:41:16 +0000
(
04:41
+0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
tests/utils.test.js
patch
|
blob
|
blame
|
history
diff --git
a/tests/utils.test.js
b/tests/utils.test.js
index 4053a146fea038d75bd699a57a10a8c83b1e6fe4..f5a5366de86bbd212f456d5a142ec9d9dd1bd5aa 100644
(file)
--- a/
tests/utils.test.js
+++ b/
tests/utils.test.js
@@
-14,6
+14,8
@@
const { KillBehaviors } = require('../lib/worker/worker-options')
describe('Utils test suite', () => {
it('Verify availableParallelism() behavior', () => {
expect(typeof availableParallelism() === 'number').toBe(true)
+ expect(availableParallelism()).toBeGreaterThan(0)
+ expect(Number.isSafeInteger(availableParallelism())).toBe(true)
})
it('Verify median() computation', () => {