test: refine test expectation
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 28 Aug 2023 17:10:00 +0000 (19:10 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 28 Aug 2023 17:10:00 +0000 (19:10 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
tests/pools/abstract/abstract-pool.test.js

index eecc0779254fc184b2db71b6366acdaedf707888..2fac7f586da5c95f79943b2877150bb54cdb6215 100644 (file)
@@ -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()
   })