test: refine expectations
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 11 Jul 2023 16:31:54 +0000 (18:31 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 11 Jul 2023 16:31:54 +0000 (18:31 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
tests/pools/abstract/abstract-pool.test.js

index 2c8d23184d4dfb49342cd4998670a1f0da1f7619..62c461841b82fbf8c014b95b3502ec050e9d6406 100644 (file)
@@ -655,9 +655,7 @@ describe('Abstract pool test suite', () => {
         }
       })
       expect(workerNode.usage.tasks.executed).toBeGreaterThan(0)
-      expect(workerNode.usage.tasks.executed).toBeLessThanOrEqual(
-        numberOfWorkers * maxMultiplier
-      )
+      expect(workerNode.usage.tasks.executed).toBeLessThanOrEqual(maxMultiplier)
       expect(workerNode.usage.runTime.history.length).toBe(0)
       expect(workerNode.usage.waitTime.history.length).toBe(0)
       expect(workerNode.usage.elu.idle.history.length).toBe(0)