fix: fix back pressure detection
[poolifier.git] / tests / pools / thread / fixed.test.js
index 1a372a26f4e66238f59f64a009a69ddc21982ad8..aeebc4a7a623a1151f37f41aaf7f56ddcfcadbc1 100644 (file)
@@ -134,6 +134,7 @@ describe('Fixed thread pool test suite', () => {
       numberOfThreads *
         (maxMultiplier - queuePool.opts.tasksQueueOptions.concurrency)
     )
+    expect(queuePool.info.backPressure).toBe(false)
     await Promise.all(promises)
     for (const workerNode of queuePool.workerNodes) {
       expect(workerNode.usage.tasks.executing).toBe(0)