test: improve coverage
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 20 May 2024 19:30:21 +0000 (21:30 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 20 May 2024 19:30:21 +0000 (21:30 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
tests/pools/abstract-pool.test.mjs

index b862479b82629bde97e5618cb7b11a3eb1c2a3f0..441e7ffc80eb5a8a9408ceb55664a0cc5c77a4f6 100644 (file)
@@ -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)