feat: make IWRR strategy worker readiness aware
[poolifier.git] / tests / pools / thread / fixed.test.js
index de81cb68c304e8ef703ff4bf819c4e5b20829237..636121fd4812eb8705bb2aed57119e8b84f8bcfb 100644 (file)
@@ -87,7 +87,9 @@ describe('Fixed thread pool test suite', () => {
     )
     let poolReady = 0
     pool1.emitter.on(PoolEvents.ready, () => ++poolReady)
-    await waitPoolEvents(pool1, PoolEvents.ready, 1)
+    if (!pool1.info.ready) {
+      await waitPoolEvents(pool1, PoolEvents.ready, 1)
+    }
     expect(poolReady).toBe(1)
   })