From: Jérôme Benoit Date: Mon, 28 Aug 2023 17:10:00 +0000 (+0200) Subject: test: refine test expectation X-Git-Tag: v2.6.37~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=dfd7ec01ad95b045302ab4bfc06956a804fe14f5;p=poolifier.git test: refine test expectation Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/abstract/abstract-pool.test.js b/tests/pools/abstract/abstract-pool.test.js index eecc0779..2fac7f58 100644 --- a/tests/pools/abstract/abstract-pool.test.js +++ b/tests/pools/abstract/abstract-pool.test.js @@ -1249,6 +1249,11 @@ describe('Abstract pool test suite', () => { workerNode.getTaskFunctionWorkerUsage(name).tasks.executed ).toBeGreaterThan(0) } + expect( + workerNode.getTaskFunctionWorkerUsage(DEFAULT_TASK_NAME) + ).toStrictEqual( + workerNode.getTaskFunctionWorkerUsage(workerNode.info.taskFunctions[1]) + ) } await pool.destroy() })