From: Jérôme Benoit Date: Mon, 20 May 2024 19:30:21 +0000 (+0200) Subject: test: improve coverage X-Git-Tag: v4.0.11~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=7411133193e1c9b3718a016a9995be2afcb58707;p=poolifier.git test: improve coverage Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/abstract-pool.test.mjs b/tests/pools/abstract-pool.test.mjs index b862479b..441e7ffc 100644 --- a/tests/pools/abstract-pool.test.mjs +++ b/tests/pools/abstract-pool.test.mjs @@ -1669,6 +1669,7 @@ describe('Abstract pool test suite', () => { { name: 'fibonacci' } ]) expect(workerNode.taskFunctionsUsage.size).toBe(3) + expect(workerNode.usage.tasks.executed).toBeGreaterThan(0) for (const taskFunctionProperties of pool.listTaskFunctionsProperties()) { expect( workerNode.getTaskFunctionWorkerUsage(taskFunctionProperties.name)